through2-jsonwriter

A simple transform stream that stringifies JSON

Usage no npm install needed!

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

README

through2-jsonwriter

A simple transform stream that stringifies JSON

Installation

npm install through2-jsonwriter

or

npm install --save through2-jsonwriter

Usage

var jsonWriter = require('through2-jsonwriter');

var stringifier = jsonWriter();

stringifier.write({hello: 'world'});

stringifier.pipe(process.stdout); //outputs {"hello":"world"}