Files
node/lib/internal
Ben Noordhuis b4b101fed6 fs: default open/openSync flags argument to 'r'
Make fs.open() and fs.openSync() more economic to use by making the
flags argument optional. You can now write:

    fs.open(file, cb)

Instead of the more verbose:

    fs.open(file, 'r', cb)

This idiom is already supported by functions like fs.readFile().

PR-URL: https://github.com/nodejs/node/pull/23767
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-11-01 21:47:11 +01:00
..
2018-10-17 11:30:56 -07:00
2018-10-17 11:21:57 -07:00
2018-07-14 14:04:38 +02:00
2018-05-18 15:25:41 +02:00
2018-10-24 16:10:16 +02:00
2018-09-11 16:58:16 +08:00
2018-09-18 17:10:40 -05:00
2018-02-16 18:09:56 +01:00
2018-08-12 10:44:53 -07:00
2018-05-18 15:25:41 +02:00
2018-10-17 11:30:03 -07:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.