website/node_modules/fs-extra/docs/writeJson-sync.md

writeJsonSync(file, object, [options])

Writes an object to a JSON file.

Alias: writeJSONSync()

Example:

const fs = require('fs-extra')

fs.writeJsonSync('./package.json', {name: 'fs-extra'})

See also: outputJsonSync()



JohnCoene/chirp documentation built on May 25, 2021, 6:33 p.m.