writable2

0.1.2 • Public • Published

Writable2

Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i writable2

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • sonewman