@@ -1470,9 +1470,11 @@ returned by this method has a default `highWaterMark` of 64 kb.
1470
1470
1471
1471
` options ` can include ` start ` and ` end ` values to read a range of bytes from
1472
1472
the 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 ` ] [ ] .
1476
1478
1477
1479
If ` fd ` is specified, ` ReadStream ` will ignore the ` path ` argument and will use
1478
1480
the specified file descriptor. This means that no ` 'open' ` event will be
@@ -1548,7 +1550,8 @@ changes:
1548
1550
* Returns: {fs.WriteStream} See [ Writable Stream] [ ] .
1549
1551
1550
1552
` 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
1552
1555
than replacing it may require a ` flags ` mode of ` r+ ` rather than the
1553
1556
default mode ` w ` . The ` encoding ` can be any one of those accepted by
1554
1557
[ ` Buffer ` ] [ ] .
@@ -4953,3 +4956,4 @@ the file contents.
4953
4956
[ chcp ] : https://ss64.com/nt/chcp.html
4954
4957
[ inode ] : https://en.wikipedia.org/wiki/Inode
4955
4958
[ 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