Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including stream-serializer with all npm packages installed. Try it out:

var streamSerializer = require("stream-serializer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

stream-serializer v1.1.2

stream-serializer

wrap a stream of regular js objects into a stream of line seperated json.

build status

testling badge

example

var json = require('stream-serializer').json

json(stream) //return a stream that can be piped through a text stream.

or

var ss require('stream-serializer')

//get your user to pass in a wrapper option
//which may be the typeof stream that is supported
//of a function that applys the wrapping.

ss(opts.wrapper)(stream) 

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free