Socket
Book a DemoInstallSign in
Socket

banr-stream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

banr-stream

Prepend one-line package.json banner in pipeline.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

banr-stream Build Status js-standard-style

Prepend one-line package.json banner in pipeline.

banr-stream

Install

$ 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
/*! 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) 2016 John Doe */
content of my module

Contributions

Pull requests and issues are welcome.

License

MIT license

© 2016 José Luis Quintana

Keywords

banner

FAQs

Package last updated on 28 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts