Skip to content
streaming JSON.stringify() for nested streams
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
test
README.markdown
index.js
package.json

README.markdown

gutter

Streaming JSON.stringify() for nested streams

example

var gutter = require('gutter');
var fs = require('fs');

var out = gutter({
    name : 'words',
    version : '0.2.1',
    words : fs.createReadStream('/usr/share/dict/words')
});

out.pipe(process.stdout);

methods

var gutter = require('gutter');

gutter(object)

Return a new json stream with stringify output from the json object object. Any streams nested inside of object will be read and output as data becomes available.

If there are multiple streams in object, the others will get paused and buffered while waiting for each stream to finish.

install

With npm do:

npm install gutter

license

MIT/X11

Something went wrong with that request. Please try again.