fs.proms
v1.0.2
Published
Promise wrapper on top of fs module
Downloads
5
Maintainers
Readme
fs.proms
npm : fs.proms
Minimal promise wrapper on top of fs module.
Usage
Note : node version >= 8.10
const fs = require('fs.proms');
fs.readFile('/path/to/file.txt', options)
.then((data) => {
... //Do Something
})
.catch((err) => {
console.log('Error', err);
})
Installation
npm install fs.proms
Test
npm test