Commit 49f0cb8c authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent ee7b676a
...@@ -30,7 +30,8 @@ async function init() { ...@@ -30,7 +30,8 @@ async function init() {
} }
} }
console.log(arr.length) createRawNew(JSON.stringify(arr, null, 2))
// console.log(arr.length)
} }
...@@ -185,6 +186,15 @@ function createConfigYashilADV(name, data) { ...@@ -185,6 +186,15 @@ function createConfigYashilADV(name, data) {
}); });
} }
function createRawNew(data) {
return new Promise(function (resolve, reject) {
fs.writeFile('raw-last.json', data, 'utf8', function (err) {
if (err) reject(err);
else resolve(data);
});
});
}
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