Skip to content

the Node.js fs module, safer via graceful-fs, and more convenient via pify

License

Notifications You must be signed in to change notification settings

jokeyrhyme/pify-fs.js

Repository files navigation

pify-fs npm Travis CI Status AppVeyor Status

the Node.js fs module, safer via graceful-fs, and more convenient via pify

What is this?

I frequently use the awesome graceful-fs wrapper in combination with the convenient pify wrapper.

I got tired of doing this over and over again, so I made this module.

Usage

const fs = require('@jokeyrhyme/pify-fs')

fs.readdir(process.cwd())
  .then((files) => assert(Array.isArray(files)))

About

the Node.js fs module, safer via graceful-fs, and more convenient via pify

Resources

License

Stars

Watchers

Forks

Packages

No packages published