Created
March 22, 2019 00:17
-
-
Save Saccarab/c2c0a967928096edaef04c930aa3e2df to your computer and use it in GitHub Desktop.
json write file sync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
fs.writeFileSync(`${name}.json`, JSON.stringify(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment