0.0.1 • Published 9 years ago

through2-jsonreader v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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"
});