Skip to content

Commit

Permalink
docs: Refactor readJsonSync example
Browse files Browse the repository at this point in the history
  • Loading branch information
manidlou committed Mar 8, 2017
1 parent 02c2a62 commit 10756de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/readJson-sync.md
Expand Up @@ -20,7 +20,8 @@ console.log(packageObj.version) // => 2.0.0

```js
const fs = require('fs-extra')
const file = path.join('/tmp/some-invalid.json')

const file = '/tmp/some-invalid.json'
const data = '{not valid JSON'
fs.writeFileSync(file, data)

Expand Down

0 comments on commit 10756de

Please sign in to comment.