through2-jsonreader

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i through2-jsonreader

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • madd512