Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jokeyrhyme/pify-fs.js
the Node.js fs module, safer via graceful-fs, and more convenient via pify
https://github.com/jokeyrhyme/pify-fs.js
Last synced: 21 days ago
JSON representation
the Node.js fs module, safer via graceful-fs, and more convenient via pify
- Host: GitHub
- URL: https://github.com/jokeyrhyme/pify-fs.js
- Owner: jokeyrhyme
- License: bsd-2-clause
- Created: 2016-06-13T03:22:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T15:16:49.000Z (over 4 years ago)
- Last Synced: 2024-10-14T21:23:39.249Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pify-fs [![npm](https://img.shields.io/npm/v/@jokeyrhyme/pify-fs.svg?maxAge=2592000)](https://www.npmjs.com/package/@jokeyrhyme/pify-fs) [![Travis CI Status](https://travis-ci.org/jokeyrhyme/pify-fs.js.svg?branch=master)](https://travis-ci.org/jokeyrhyme/pify-fs.js) [![AppVeyor Status](https://img.shields.io/appveyor/ci/jokeyrhyme/pify-fs-js/master.svg)](https://ci.appveyor.com/project/jokeyrhyme/pify-fs-js)
the Node.js fs module, safer via graceful-fs, and more convenient via pify
## What is this?
I frequently use the awesome [graceful-fs](https://www.npmjs.com/package/graceful-fs) wrapper in combination with the convenient [pify](https://www.npmjs.com/package/pify) wrapper.
I got tired of doing this over and over again, so I made this module.
## Usage
```js
const fs = require('@jokeyrhyme/pify-fs')fs.readdir(process.cwd())
.then((files) => assert(Array.isArray(files)))
```