try-open

v0.1.3

Tries to open a file using fs.openSync (only necessary with sync), fails gracefully if the file path does not exist on the file system. Since fs.existsSync has been deprecated, this can be used as an alternative.


npm install try-open
Bundle size
Dependencies
Dependencies(0)

    Peer Dependencies(0)

      Dev Dependencies(2)