Skip to content

Commit

Permalink
readme: add options param for outputFile. Closes #197
Browse files Browse the repository at this point in the history
  • Loading branch information
jprichardson committed Dec 17, 2015
1 parent df7c7fd commit b2e6f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile', function (err) {
```


### outputFile(file, data, callback)
### outputFile(file, data, [options], callback)

Almost the same as `writeFile` (i.e. it [overwrites](http://pages.citebite.com/v2o5n8l2f5reb)), except that if the parent directory does not exist, it's created.
Almost the same as `writeFile` (i.e. it [overwrites](http://pages.citebite.com/v2o5n8l2f5reb)), except that if the parent directory does not exist, it's created. `options` are what you'd pass to [`fs.writeFile()`](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback).

Sync: `outputFileSync()`

Expand Down

0 comments on commit b2e6f2d

Please sign in to comment.