co-fs-plus
co-fs plus, supports `fs.walk` `fs.mkdirp` `fs.rimraf` etc.
Last updated 6 years ago by fundon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install co-fs-plus 
SYNC missed versions from official npm registry.

co-fs-plus Build Status

co-fs plus, supports fs.walk fs.mkdirp fs.readdir fs.rimraf.

Installation

$ npm install co-fs-plus

Example

var files = yield fs.walk('/opt/boxen');
var files = yield fs.walk('.', {
  followSymlinks: true
});

var files = yield fs.readdir('/opt/boxen', {   // Recursively, excudes hidden files.
  filterFilename: function (filename) {
    return filename[0] != '.';
  }
}, []);

var res = yield fs.mkdirp('web/js/jquery');

yield fs.rimraf('web/js/jquery');

APIs

fs.walk(path, [options], [arr])

fs.readdir(path, [options], [arr])

fs.mkdirp(path, [mode])

fs.rimraf(path, [mode]), based on rimraf

License

MIT

Current Tags

  • 0.3.1                                ...           latest (6 years ago)

8 Versions

  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 8
Last Month 9
Dependencies (3)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |