0.0.1 • Published 9 years ago
through2-jsonreader v0.0.1
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"
});
0.0.1
9 years ago