json-compose-stream
Compose valid JSON output from any number of streams or values
Example
var jsonComposeStream =var hyperquest =var xmlNodes =var jsonStream =jsonStreamjsonStreamjsonStream
Usage
var s = jsonComposeStream()
s.set(obj)
Provide an object to set multiple values at once. Returns s
to allow chaining.
s
s.set(key=string, value=string)
Provide a key/value pair to set a single value. Returns s
to allow chaining.
s
s.createSetStream(key=string)
Returns a writeable stream that should be used to write the value of key
.
descriptionStream
License
MIT