async-json-writer
v1.3.0
Published
Writes huge JSONs to stream with minimum memory usage
Downloads
4
Readme
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');
});