f.2

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i f.2

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • colohr