fs-thenable
1.1.1 • Public • Published fs-thenable
Promised version of the fs module which works on Electron.
Based on Proxy (i.e. it supports all fs
methods).
Installation
npm i fs-thenable
Example
fs.readFile(__filename, 'utf8').then(
function (data) {
console.info(data);
},
function (err) {
console.error(err.message);
}
);
License
MIT
Package Sidebar
Install
Weekly Downloads