2.0.0 • Published 7 years ago

promisfy-readfile v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

promisfy-readfile

simple promisfy for readfile

npm install promisfy-readfile

useage

'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

License

MIT

2.0.0

7 years ago

1.7.0

7 years ago

1.5.0

7 years ago

1.3.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago