npm.io
0.1.0 • Published 11 years ago

wrapper-stream

Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0

Wrapper stream#

Io.js and nodejs stream wrapper stream. Good companion for coleccionista module.

Usage

let Wrapper = require('wrapper-stream');

let stream = new Wrapper({
    prologue: "This string will be inserted in the begining of the stream",
    epilogue: "This string will be inserted in the end of the stream",
    itemPrologue: "This string will be inserted before every item in the stream",
    itemEpilogue: "This string will be inserted after every item in the stream"
});
// now we can use it like usual stream
stream.pipe(otherStream);

Keywords