prependstream

Super simple stream that prepends a constant value to another stream.

npm install prependstream
20 downloads in the last month

Usage

PrependStream = require 'prependstream'
prep = new PrependStream
    prepend: 'Prepend something!\n'

fs = require 'fs'
fs.createReadStream '/etc/motd'
prep = fs.pipe prep
prep.pipe process.stdout

License

The MIT license, see LICENSE file.

npm loves you