A stream that extends JSON objects with JSON objects
Extend stream is a stream that takes an initial JSON object and extends it with other JSON objects it receives and emits the final result when it's read source is done streaming objects to it
var extendStream = require"extend-stream";var JSONStream = require"JSONStream";var eventStream = require"event-stream";obj =run: "don't"walk: "to"the: "party"var lineStream = eventStreamnextfalse line + "\n";;stream = extendStreamobj;streampipeJSONStreamstringifyfalsepipelineStreampipeprocessstdoutstreamwrite run: "fast don't"streamwrite the: "awesome party"streamend
Extend stream exports a single function
extendStream. This function takes only
one argument, which is the initial object value to extend.