lie-fs

1.2.0 • Public • Published

lie-fs Build Status

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)
 

Readme

Keywords

Package Sidebar

Install

npm i lie-fs

Weekly Downloads

7

Version

1.2.0

License

MIT

Last publish

Collaborators

  • hemanth