module-header

0.5.0 • Public • Published

module-header Build Status

A tool that generates an info header from your module's package.json and prepends it to the given file(s).

Install

$ npm install --save-dev module-header

Usage

const header = require('module-header');
const pkg = require('./package.json')
 
header('dist/**/*.js', pkg)
// optionally pass your custom template string:
// header('*.js', pkg, `-- ${pkg.name} --`)
  .then(...)
  .catch(...);

CLI

$ npm install --global module-header
  Usage:
    $ header <file-glob(s)>

  Example:
    $ header dist/**/* src/*.js

License

MIT http://tameraydin.mit-license.org/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.0
    22
  • 0.4.0
    0
  • 0.3.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i module-header

Weekly Downloads

14

Version

0.5.0

License

MIT

Last publish

Collaborators

  • tameraydin