Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)