Socket
Socket
Sign inDemoInstall

at-at

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    at-at

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


Version published
Weekly downloads
43
increased by437.5%
Maintainers
1
Install size
2.38 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 04 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc