2.0.0 • Published 5 years ago
pifs v2.0.0
pifs 
Promisified graceful-fs.
- aligned with Node.js v10
- native
util.promisify() - no sync methods
- no deprecated methods like
exists - no undocumented exports like
FileReadStreamorF_OK - no
promises:) - non-callback methods like
createReadStreamorwatchare re-exported as is constantsis re-exported as is
Install
$ yarn add pifsUsage
import { readFile } from 'pifs'
readFile('/file/path', 'utf8')
.then(console.log)
.catch(console.error)