1.0.8 • Published 3 years ago
kc-fread v1.0.8
Fread
nodejs fs.readFile wrapper.
Install
npm install kc-fread
Use
var fread = require('kc-fread');
var str = fread('my-file.txt');
console.log(str);
## Async usage
fread('my-file.txt', function(err, str){
console.log(data);
});