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)
 

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.01
1.1.00
1.0.00
0.1.30
0.1.10
0.1.00

Package Sidebar

Install

npm i lie-fs

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • hemanth