diff --git a/doc/api/fs.md b/doc/api/fs.md index 3be576e175eed5..790b6046e034f6 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -188,6 +188,17 @@ When operating on file handles, the mode cannot be changed from what it was set to with [`fsPromises.open()`][]. Therefore, this is equivalent to [`filehandle.writeFile()`][]. +#### `filehandle.arrayBuffer()` + + +> Stability: 1 - Experimental + +* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success. + +Reads the whole file as binary data. + #### `filehandle.chmod(mode)` + +> Stability: 1 - Experimental + +* Returns: {Promise} Fulfills with a {string} upon success. + +Reads the whole file as UTF-8 text. + #### `filehandle.truncate(len)`