async-json-writer
v1.2.0 JSON stream
async-json-writer
Install
npm install async-json-writer
Use
'use strict';
const asyncJsonWriter = require('async-json-writer');
const fs = require('fs');
const hugeObject = {};
const out = fs.createWriteStream('out.json');
asyncJsonWriter(out, hugeObject, function(err) {
if (err) {
console.error('Error', err);
return;
}
console.log('Done');
});
npm i [email protected]
Metadata
- ISC
- Whatever
- Roman Grudzinski
- released 3/10/2016