1.0.0 • Published 7 years ago

f.2 v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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