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