Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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