f.2
v1.0.0
Published
fs + fs-extra + fs.existsSync as.fs.exists with promises
Downloads
3
Readme
f.2
f.2
A proxy using fs + fs-extra + fs.existsSync as fs.exists with promises.
Install
npm install --save f.2
Use
const fs = require('f.2')
Example
const fs = require('f.2')
fs.copy('/tmp/myfile', '/tmp/mynewfile')
.then(()=>{
console.log("success!");
})
.catch(err=>{
console.error(err);
})
try {
fs.copySync('/tmp/myfile', '/tmp/mynewfile')
console.log("success!")
} catch (err) {
console.error(err)
}
Example copied from fs-extra example.
Credits
License
ISC