2.3.02.2.3
Reading changes from the repo…
throws
option with the readFile
method, allowing for better error handling when reading JSON files asynchronously. If an error occurs while parsing the contents, the callback will receive null
instead of an error, maintaining a consistent experience with synchronous file reading. writeFile
and writeFileSync
have been updated to include the object argument, making it clearer how to use these methods.