prefixes a (text) stream with a given string before each chunk, useful, for e.g., when piping text from multiple sources to stdout
npm install prefix-stream``sh`
$ npm install --save prefix-stream
`js
var prefix = require('prefix-stream');
var source = ... // or anything stream that outputs text
source.pipe(prefix('my cool prefix: ')).pipe(process.stdout);
`
Alternatively, you can use new PrefixStream({prefix: 'my cool prefix: '})` if you need to pass other options to the underlying stream implementation.
MIT © Nathan Friedly
[npm-image]: https://badge.fury.io/js/prefix-stream.svg
[npm-url]: https://npmjs.org/package/prefix-stream
[travis-image]: https://travis-ci.org/nfriedly/prefix-stream.svg?branch=master
[travis-url]: https://travis-ci.org/nfriedly/prefix-stream
[daviddm-image]: https://david-dm.org/nfriedly/prefix-stream.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/nfriedly/prefix-stream