Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

at-at

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

at-at

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

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 04 Aug 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc