fs: make params in writing methods optional
Closes: https://github.com/nodejs/node/issues/41666
Depends on: https://github.com/nodejs/node/pull/42768 (reading counterparts, https://github.com/nodejs/node/labels/semver-minor)
Formerly a part of https://github.com/nodejs/node/pull/41677
An attempt to implement "named parameters" for fs.write() (Callback API), filehandle.write() (Promises API) and fs.writeSync() (Synchronous API).
Mandatory buffer
argument is followed by optional options
object with optional offset
, length
, position
properties.