npm.io
0.0.1 • Published 13 years ago

json-stringify-stream

Licence
MIT
Version
0.0.1
Deps
1
Vulns
0
Weekly
0
Stars
1

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

Keywords