1.0.4 • Published 9 years ago
banr-stream v1.0.4
banr-stream

Prepend one-line package.json banner in pipeline.

Install
yarn add banr-stream --devnpm install banr-stream --save-devUsage
CLI
--file is optional. More info check out banr.
Options:
--file=FILE, -f FILEExample:
$ echo "MY CONTENT FILE" | banr-stream
/*! Banr-stream v1.0.2 | MIT (c) 2016 José Luis Quintana */
MY AWESOME CONTENT FILEAPI
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 moduleLicense
MIT license
© 2017 José Luis Quintana