1.1.0 • Published 5 years ago

at-at v1.1.0

Weekly downloads
13
License
MPL
Repository
github
Last release
5 years ago

AT-AT

An AT-AT walker to walk all over your (filesystem) planet.

Usage

Use at-at to traverse directories in your filesystem.

var walker = require('at-at');

walker.walk('./', function(files) {
    // files is an array of filenames (including the paths).
    files.forEach(function(file) {
        console.log(file);
    });
});

The callback passed to walker.walk() gets called after all files have been traversed asynchronously. The given example is similar to running the shell command find.

TODO

  • Traverse with regex filters.
  • Traverse by type (directory, file, etc).

Thanks to

  • mscdex for some insight on asynchronicity.
  • chjj for the initial idea. I wanted to make my own and I learnt lots in the process.
1.1.0

5 years ago

1.0.1

5 years ago

0.1.1

5 years ago

1.0.0

7 years ago

0.1.0

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago