json-stringify-stream

0.0.1 • Public • Published

json-stringify-stream

Calls JSON.stringify() on data written to it and emits the result.

var stringify = require('json-stringify-stream')
  , st = stringify()
 
st.pipe(process.stdout)
st.write([1,2,3])
 
/* output:
'[1,2,3]'
*/

events

stringify() instances are readable/writable streams.

Their data events are simply the stringified form of what was written to it.

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    3

Package Sidebar

Install

npm i json-stringify-stream

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • wraithan