Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 Readme.md
Octocat-spinner-32 example.js
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 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

Something went wrong with that request. Please try again.