through2-jsonreader

A simple transform stream that parses JSON

Usage no npm install needed!

<script type="module">
  import through2Jsonreader from 'https://cdn.skypack.dev/through2-jsonreader';
</script>

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