https://github.com/faradayio/through2-jsonwriter
A simple transform stream that stringifies JSON
https://github.com/faradayio/through2-jsonwriter
Last synced: 3 months ago
JSON representation
A simple transform stream that stringifies JSON
- Host: GitHub
- URL: https://github.com/faradayio/through2-jsonwriter
- Owner: faradayio
- License: mit
- Created: 2015-01-23T15:26:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-23T15:57:06.000Z (over 11 years ago)
- Last Synced: 2025-05-29T13:10:25.525Z (about 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-jsonwriter
A simple transform stream that stringifies JSON
## Installation
```console
npm install through2-jsonwriter
```
or
```console
npm install --save through2-jsonwriter
```
## Usage
```javascript
var jsonWriter = require('through2-jsonwriter');
var stringifier = jsonWriter();
stringifier.write({hello: 'world'});
stringifier.pipe(process.stdout); //outputs {"hello":"world"}
```