Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const writeJSONFile = (filename, content) => {
- // We use FS to write the JSON Data content into the filename
- fs.writeFileSync(filename, JSON.stringify(content), "utf8", err => {
- // If any error we show in console
- if (err) {
- console.log(err);
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement