https://github.com/olsonpm/fs-bluebird
https://github.com/olsonpm/fs-bluebird
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/olsonpm/fs-bluebird
- Owner: olsonpm
- Created: 2015-01-24T21:44:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-14T18:40:52.000Z (almost 11 years ago)
- Last Synced: 2025-01-20T23:45:26.703Z (over 1 year ago)
- Language: JavaScript
- Size: 641 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fs-bluebird
The intention of this library is to retain the same *Async prefix syntax while also covering the edge case of fs.exists (which doesn't follow the [error, result] callback parameter pattern).
If there are more edge cases to take care of I will be happy to add them to this library. Better yet, you could send me a pull request with the fix and associated mocha test and I'll merge.
###fs.existsAsync example:
```
var bFs = require('fs-bluebird');
var fileThatExists = './index.js';
bFs.existsAsync(fileThatExists)
.then(function(exists) {
if (exists) {
// do something with file
}
});
```
Feel free to contact me with questions