fs-readdir-alt
fs.readdir done right! Support sync, async and stream API, recursiveness and filters.
Fork notice
This is forked off https://github.com/tunnckoCore/fs-readdir.
Differences:
- Option to disable directory recursion
- Option to stop operation asap on first error encountered
- Option to only include files or directories in results
- Option to only use the emitter (instead of using the callback) to send back results, resulting in memory savings
Install, Test & Benchmark
npm i --save fs-readdir-alt
node benchmark
Usage
For more use-cases see the tests
var fsReaddir = ;var through2 = ; // callback api; // callback api with opts; // emitter only; // as streamvar stream =
Fork Author
Theo Gravity
- [github/theogravity][author-github]
- [npmjs/theo.gravity][author-npmjs]
Orig Author
Charlike Mike Reagent
- [gratipay/tunnckoCore][author-gratipay]
- [twitter/tunnckoCore][author-twitter]
- [github/tunnckoCore][author-github]
- [npmjs/tunnckoCore][author-npmjs]
- [more ...][contrib-more]
License
Copyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].
Released under the MIT
license.