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/

Dependencies (5)

Dev Dependencies (6)

Package Sidebar

Install

npm i module-header

Weekly Downloads

14

Version

0.5.0

License

MIT

Last publish

Collaborators

  • tameraydin