Wrap fs module to promise
npm install lite-fs-promiseWrap fs module to promise
* Just use it as fs module
* For asynchronous functions list below, use them in either original callback way like:
``javascript
const fs = require('fs-promise')
fs.foo(arg1, arg2, (err, arg) => {
})
`
or Promise way like:
`javascript
const fs = require('fs-promise')
fs.foo(arg1, arg2)
.then((err, arg) => {
})
``
Promise function list:
* access
* appendFile
* chmod
* chown
* close
* copyFile
* exists
* fchmod
* fchown
* fdatasync
* fstat
* fsync
* ftruncate
* futimes
* lchmod
* lchown
* link
* lstat
* mkdir
* mkdtemp
* open
* read
* readdir
* readFile
* readlink
* realpath
* rename
* rmdir
* stat
* symlink
* truncate
* unlink
* utimes
* write
* write
* writeFile