Skip to content

Commit

Permalink
Merge pull request #379 from hail2u/patch-1
Browse files Browse the repository at this point in the history
Document `outputFile()` only supports a file path
  • Loading branch information
RyanZim committed Mar 6, 2017
2 parents e771770 + 6e0f0cc commit e06440b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/outputFile.md
@@ -1,6 +1,6 @@
# 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. `options` are what you'd pass to [`fs.writeFile()`](https://nodejs.org/api/fs.html#fs_fs_writefile_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. `file` must be a file path (a buffer or a file descriptor is not allowed). `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 e06440b

Please sign in to comment.