pifs
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

pifs npm

Promisified graceful-fs.

  • aligned with Node.js v10
  • native util.promisify()
  • no sync methods
  • no deprecated methods like exists
  • no undocumented exports like FileReadStream or F_OK
  • no promises :)
  • non-callback methods like createReadStream or watch are re-exported as is
  • constants is re-exported as is

Install

$ yarn add pifs

Usage

import { readFile } from 'pifs'
 
readFile('/file/path', 'utf8')
  .then(console.log)
  .catch(console.error)

Package Sidebar

Install

npm i pifs

Weekly Downloads

72,024

Version

2.0.0

License

MIT

Unpacked Size

12.3 kB

Total Files

5

Last publish

Collaborators

  • deepsweet
  • fosimus
  • psxcode