Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
/ banr-stream Public archive

Prepend one-line package.json banner in pipeline.

License

Notifications You must be signed in to change notification settings

joseluisq/banr-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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