lie-fs
v1.2.0
Published
Promise wrappers for Node's FS API.
Downloads
8
Readme
lie-fs
Promise wrappers for Node's file system.
All the async methods of node's fs
API are converted to promises using lie-denodify.
Below methods, to be precise:
[ 'readFile',
'close',
'open',
'read',
'readSync',
'write',
'rename',
'truncate',
'ftruncate',
'rmdir',
'fdatasync',
'fsync',
'mkdir',
'readdir',
'fstat',
'lstat',
'stat',
'readlink',
'symlink',
'link',
'unlink',
'fchmod',
'lchmod',
'chmod',
'lchown',
'fchown',
'chown',
'utimes',
'futimes',
'writeFile',
'appendFile',
'realpath' ]
Installing :
npm install lie-fs
Usage Example:
var lieFS = require('lie-fs');
lieFS.stat('/tmp').then(console.log, console.error)