bannerman

1.0.3 • Public • Published

bannerman

package version package downloads standard-readme compliant package license make a pull request Greenkeeper badge

Quick and dirty CLI util to add banner info to file(s) based on your package.json

Table of Contents

Install

This project uses node and npm.

$ npm install bannerman
# OR 
$ yarn add bannerman

Usage

You should be in the root directory of the project (Same as the package.json file). Just list the files you would like to add banners to followed by --[name of property] for all the properties of your package.json you would like to add a banner. If you flag a property that doesn't exist it will just be ignored.

For example:

$ bannerman file1.js file2.css --name --version

Will generate at the top of file1.js and file2.css:

/**
 *
 * @name awesome-project
 * @version 1.0.0
 */

It can easily be used as a npm script:

"script": {
  "banner": "bannerman dist/awesome.js --name --version --author --license"
}

Note: - There is no support for nested properties in the package.json

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i bannerman

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

135 kB

Total Files

7

Last publish

Collaborators

  • tiaanduplessis