Logo white

ADAM / AIAHTML5

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues
  • Merge Requests 14
  • Labels
  • Wiki
  • Snippets
  • AIAHTML5
  • 400-SOURCECODE
  • AIAHTML5.Admin
  • node_modules
  • fs-extra
  • docs
  • writeJson-sync.md
  • Committed to avoid conflict
    6ea50e33
    Utkarsh Singh authored
    2017-07-06 10:33:29 +0530  
    Browse Code ยป
writeJson-sync.md 495 Bytes
Edit Raw Blame History Permalink

writeJsonSync(file, object, [options])

Writes an object to a JSON file. options are the same that you'd pass to <code>jsonFile.writeFileSync()</code>.

Alias: writeJSONSync()

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

Example:

const fs = require('fs-extra')

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

See also: <code>outputJsonSync()</code>