writable2
v0.1.2
Published
Readme
Writable2
Inspired by the two great through stream modules (through and through2)
This is a simple way to create a writable stream
var writable = require('writable2')
someReadable.pipe(writable(function (data, enc, next) {
// do something with `data`
next()
}))
Usage:
writable([options, ] write [, onFinish])
Will create a standard writable stream which requires all written data to be a string or buffer
writable.obj([options, ] write [, onFinish])
Will create an writable stream in objectMode which means that an object can be written to the stream
writable.ctor([options, ] write [, onFinish])
Will create a constructor for a writable stream with the specified arguments
