Last active
November 28, 2017 20:12
-
-
Save Arieg419/39a3c6da74aee82774a37de826f79606 to your computer and use it in GitHub Desktop.
This file contains hidden or 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'} | |
const errorLoggerFunction = (err) => console.error(err); | |
jsonfile.writeFile(file, obj, errorLoggerFunction) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment