through2-jsonreader
v0.0.1
Published
A simple transform stream that parses JSON
Downloads
60
Maintainers
Readme
through2-jsonreader
A simple transform stream that parses JSON
Installation
npm install through2-jsonreader
or
npm install --save through2-jsonreader
Usage
var jsonReader = require('through2-jsonreader');
var parser = jsonReader();
parser.write('{"hello":"world"}');
parser.on('data', function(datum){
console.log(datum.hello); //outputs "world"
});