@@ -1470,9 +1470,11 @@ returned by this method has a default `highWaterMark` of 64 kb.
14701470
14711471` options ` can include ` start ` and ` end ` values to read a range of bytes from
14721472the file instead of the entire file. Both ` start ` and ` end ` are inclusive and
1473- start counting at 0. If ` fd ` is specified and ` start ` is omitted or ` undefined ` ,
1474- ` fs.createReadStream() ` reads sequentially from the current file position.
1475- The ` encoding ` can be any one of those accepted by [ ` Buffer ` ] [ ] .
1473+ start counting at 0, allowed values are in the
1474+ [ 0, [ ` Number.MAX_SAFE_INTEGER ` ] [ ]] range. If ` fd ` is specified and ` start ` is
1475+ omitted or ` undefined ` , ` fs.createReadStream() ` reads sequentially from the
1476+ current file position. The ` encoding ` can be any one of those accepted by
1477+ [ ` Buffer ` ] [ ] .
14761478
14771479If ` fd ` is specified, ` ReadStream ` will ignore the ` path ` argument and will use
14781480the specified file descriptor. This means that no ` 'open' ` event will be
@@ -1548,7 +1550,8 @@ changes:
15481550* Returns: {fs.WriteStream} See [ Writable Stream] [ ] .
15491551
15501552` options ` may also include a ` start ` option to allow writing data at
1551- some position past the beginning of the file. Modifying a file rather
1553+ some position past the beginning of the file, allowed values are in the
1554+ [ 0, [ ` Number.MAX_SAFE_INTEGER ` ] [ ]] range. Modifying a file rather
15521555than replacing it may require a ` flags ` mode of ` r+ ` rather than the
15531556default mode ` w ` . The ` encoding ` can be any one of those accepted by
15541557[ ` Buffer ` ] [ ] .
@@ -4953,3 +4956,4 @@ the file contents.
49534956[ chcp ] : https://ss64.com/nt/chcp.html
49544957[ inode ] : https://en.wikipedia.org/wiki/Inode
49554958[ support of file system `flags` ] : #fs_file_system_flags
4959+ [ `Number.MAX_SAFE_INTEGER` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
0 commit comments