https://github.com/faradayio/through2-jsonreader
A simple transform stream that parses JSON
https://github.com/faradayio/through2-jsonreader
Last synced: 3 months ago
JSON representation
A simple transform stream that parses JSON
- Host: GitHub
- URL: https://github.com/faradayio/through2-jsonreader
- Owner: faradayio
- License: mit
- Created: 2015-01-23T15:25:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-23T15:56:19.000Z (over 11 years ago)
- Last Synced: 2025-03-12T00:14:40.204Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# through2-jsonreader
A simple transform stream that parses JSON
## Installation
```console
npm install through2-jsonreader
```
or
```console
npm install --save through2-jsonreader
```
## Usage
```javascript
var jsonReader = require('through2-jsonreader');
var parser = jsonReader();
parser.write('{"hello":"world"}');
parser.on('data', function(datum){
console.log(datum.hello); //outputs "world"
});
```