Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitaliyr/fs-fs
A NodeJS fs wrapper for Promises or/and async/await
https://github.com/vitaliyr/fs-fs
Last synced: 3 days ago
JSON representation
A NodeJS fs wrapper for Promises or/and async/await
- Host: GitHub
- URL: https://github.com/vitaliyr/fs-fs
- Owner: VitaliyR
- Created: 2017-11-29T15:00:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T15:03:20.000Z (almost 7 years ago)
- Last Synced: 2024-09-14T06:57:55.563Z (21 days ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fs-fs
Yet another NodeJS fs wrapper for Promises or/and async/await. Based on Proxy on top
of original fs lib. Also, each method has it's linked *original* version.## Usage
```js
const fs = require('fs-fs');try {
const data = await fs.readFile('path');
} catch (e) {
}const isExists = await fs.exists('path');
fs
.readFile('path')
.then(Function.prototype)
.catch(Function.prototype);fs.native.readFile('path', Function.prototype /* callback */);
```## License
MIT © 2017 [Vitaliy Ribachenko](https://ribachenko.com)