Try to read a file. Ignore ENOENT.
📣 💼 💰Looking for a tech job? Try our reverse recruiting service.
This module exports one function:
Arguments are expected as described for Node's fs.readFile.
Returns a promise that…
- resolves to the file's contents if it the read attempt succeeded.
- resolves to
ENOENT(file not found) was encountered.
- rejects for all other errors.