diff options
author | cjihrig <cjihrig@gmail.com> | 2018-05-03 21:40:48 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-05-08 02:47:42 +0300 |
commit | 975f6c1f7077fd33db95eaeee6ccfa49e4a29348 (patch) | |
tree | edbc5ece189e5b3747d5bb659203b55c8dafa580 /doc | |
parent | 0452f1152cb15db01631196e893b875332946b76 (diff) |
fs: move fs/promises to fs.promises
PR-URL: https://github.com/nodejs/node/pull/20504
Refs: https://github.com/nodejs/TSC/issues/389
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/fs.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index bace6d94836..30d6729d48c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3382,9 +3382,9 @@ Synchronous versions of [`fs.write()`][]. Returns the number of bytes written. > Stability: 1 - Experimental -The `fs/promises` API provides an alternative set of asynchronous file system +The `fs.promises` API provides an alternative set of asynchronous file system methods that return `Promise` objects rather than using callbacks. The -API is accessible via `require('fs/promises')`. +API is accessible via `require('fs').promises`. ### class: FileHandle <!-- YAML |