scoot-stream
stream.write(JSON.stringify(obj) + '\n') shortcut
Install
npm install scoot-stream -S
Usage
const scoot = const through = const split = const so = const stream = const sp = stream sp sp
API
scoot(String)
Pass in a base string for scoot use as the property of the object you're stringifying.
so(Stream, String)
Pass in a writable stream and a string to use as the value for the object you're stringifying.
so(Stream, Object)
Pass in a writable stream and an object to stringify.