Prepend one-line package.json banner in pipeline.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jose Quintana 1651e721fa 1.0.4 2 years ago
bin 1.0.3 3 years ago
example 1.0.2 3 years ago
.gitignore init 3 years ago
.travis.yml 2017 package upgrade 2 years ago
LICENSE.md 2017 package upgrade 2 years ago
README.md 2017 package upgrade 2 years ago
index.js 1.0.2 3 years ago
package.json 1.0.4 2 years ago
test.js 2017 package upgrade 2 years ago
yarn.lock 2017 package upgrade 2 years ago

README.md

banr-stream Build Status js-standard-style

Prepend one-line package.json banner in pipeline.

banr-stream

Install

Yarn

yarn add banr-stream --dev

NPM

npm install banr-stream --save-dev

Usage

CLI

--file is optional. More info check out banr.

Options:

  --file=FILE, -f FILE

Example:

$ echo "MY CONTENT FILE" | banr-stream
/*! Banr-stream v1.0.2 | MIT (c) 2016 José Luis Quintana */
MY AWESOME CONTENT FILE

API

var banr = require('banr-stream');

process.stdin
  .pipe(banr())
  .pipe(process.stdout);

Example:

$ echo "content of my module" | node example/stream.js
/*! MyModule v1.0.0 | MIT (c) 2017 John Doe */
content of my module

License

MIT license

© 2017 José Luis Quintana