wallet-core/node_modules/fs-extra/docs/writeJson-sync.md
2017-08-14 05:02:09 +02:00

889 B

writeJsonSync(file, object, [options])

Writes an object to a JSON file.

Alias: writeJSONSync()

  • file <String>
  • object <Object>
  • options <Object>

Example:

const fs = require('fs-extra')

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

See also: outputJsonSync()