0.0.4 • Published 8 years ago

headr v0.0.4

Weekly downloads
35
License
MIT
Repository
github
Last release
8 years ago

headr

Adds header / banner info to a file. Nice to use as npm script :)

npm install -g headr (it may require Root privileges)

or for npm script:

npm install --save-dev headr

Requirements

  • Node.js 4+

Usage

$ headr input.js -o=output.js --version --homepage --license

Headr will inspect package.json using name and description as default, and then generates the following code:

/**
 * headr - Add header to a file
 *
 * @version v0.0.1
 * @homepage http://heldr.com
 * @license MIT
 */

 your code

Custom labels

$ headr input.js -o=output.js --homepage="link"
/**
 * headr - Add header to a file
 *
 * @link http://heldr.com
 */

 your code

Tab spaces

$ headr input.js -o=output.js --h-tab-spaces=4

Pipe

$ cat input.js | headr -o=output.js --version --homepage --license

or:

$ cat input.js | headr --version --homepage --license > output.js

Just make sure to use a different output file in this case, otherwise -o replaces the file nicely :)

License

MIT License (c) Helder Santana

0.0.4

8 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago