You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
199 B
JavaScript

const fs = require("fs");
const DATA = require("./data");
fs.writeFile('data.json', JSON.stringify(DATA), err => {
if (err) {
console.error(err)
return
}
//file written successfully
})