Promisified graceful-fs.
- aligned with Node.js v10
- native
util.promisify()
- no sync methods
- no deprecated methods like
exists
- no undocumented exports like
FileReadStream
orF_OK
- no
promises
:) - non-callback methods like
createReadStream
orwatch
are re-exported as is constants
is re-exported as is
$ yarn add pifs
import { readFile } from 'pifs'
readFile('/file/path', 'utf8')
.then(console.log)
.catch(console.error)