No description or website provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Readme.md
example.js
index.js
package.json
test.js

Readme.md

JSON List Stream

json-list-stream

Example

var List = require('json-list-stream')

var list = new List()
  , i = 0

list.set('hello', { name: 'World' })
list.write({ 'n': ++i })
list.write({ 'n': ++i })
list.set('count', i)
list.end()

list.pipe(process.stdout)
$ node example.js

{"hello":{"name":"World"},"rows":[
{"n":1},
{"n":2}
],"count":2}

Install

$ npm install json-list-stream

Test

$ npm test

License

MIT