Commit a2cd508b authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent ffde763f
...@@ -126,8 +126,18 @@ async function run(root,name, directory, timestamp) { ...@@ -126,8 +126,18 @@ async function run(root,name, directory, timestamp) {
las.push(last[i]) las.push(last[i])
} }
const json = require('big-json');
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
createfileADV(root,timestamp, name, JSON.stringify(las, null, 2))
last = [] last = []
} }
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"big-json": "^3.1.0",
"execution-time": "^1.4.1", "execution-time": "^1.4.1",
"extract-zip": "^2.0.1", "extract-zip": "^2.0.1",
"fast-csv": "^4.3.6", "fast-csv": "^4.3.6",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment