Skip to content

Instantly share code, notes, and snippets.

@Arieg419
Created November 28, 2017 20:13
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