jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

readFile throws even if throws is set to false #152

Closed modten closed 1 year ago

modten commented 1 year ago

fs.readFileSync has been moved within the try/catch, but readFile has not

https://github.com/jprichardson/node-jsonfile/issues/47

RyanZim commented 1 year ago

This is basically a dupe of https://github.com/jprichardson/node-fs-extra/issues/542; it's not clear what the way forward is.

modten commented 1 year ago

ok, i will use the sync api