Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtx1130/promisfy-readfile
promise fs readfile stream buffer
https://github.com/xtx1130/promisfy-readfile
Last synced: 3 months ago
JSON representation
promise fs readfile stream buffer
- Host: GitHub
- URL: https://github.com/xtx1130/promisfy-readfile
- Owner: xtx1130
- Created: 2017-05-11T02:39:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T10:18:01.000Z (over 7 years ago)
- Last Synced: 2024-09-15T09:10:06.606Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# promisfy-readfile
> simple promisfy for readfile
```bash
npm install promisfy-readfile
```
## useage```js
'use strict';const readFile = require('promisfy-readfile');
let genera = async ()=>{
let da = await readFile(file);
return da;
};genera().then(res=>{
console.log(res)//buffer type
}).catch(err=>{
throw err
});
```## Issues
If you have any question,please click [issues](https://github.com/xtx1130/promisfy-readfile/issues)## License
MIT