0.1.0 • Published 9 years ago

wrapper-stream v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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);