Created
November 28, 2017 20:13
-
-
Save Arieg419/ac74a1bf4b14c8eab672202ded474449 to your computer and use it in GitHub Desktop.
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 jsonfile = require('jsonfile') | |
const file = '/tmp/data.json' | |
const obj = {name: 'JP'} | |
jsonfile.writeFile(file, obj, (err) => console.error(err)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment