through-json
Through stream that parses each write as a JSON message.
npm install through-json
Usage
var parse = ;// parse returns a streams2 through streamvar p = ;p;p;// each write must be a complete JSON messagep;p;p;
Running the above program produces the following output
test
another test
no more messages
License
MIT