@zx-libs/header

0.0.2 • Public • Published

header

Downloads Version License

Add specified information to the file header, such as version, copyright, etc.

Used in JS files

import { header } from '@zx-libs/header'

header('./dist', {
  name: 'libs-name',
  version: '1.0.0',
  author: 'capricorncd<capricorncd@qq.com>',
  homepage: 'https://github.com/capricorncd/zx-libs#readme',
})

// or
header('./dist', [
  '/*!',
  ' * libs-name version 1.0.0',
  ' * Author: capricorncd<capricorncd@qq.com>',
  ' * Homepage: https://github.com/capricorncd/zx-libs#readme',
  ' * Released on: 2024-04-21 17:31:24 (GMT+0900)',
  ' */',
])

Use in command line

node node/header --dir=dist --prepend-file=prepend-file.txt

prepend-file.txt

/*!
 * libs-name version 1.0.0'
 * Author: capricorncd<capricorncd@qq.com>'
 * Homepage: https://github.com/capricorncd/zx-libs#readme'
 * Released on: 2024-04-21 17:31:24 (GMT+0900)'
 */

Package Sidebar

Install

npm i @zx-libs/header

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

4.42 kB

Total Files

4

Last publish

Collaborators

  • capricorncd