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

@fcostarodrigo/walk

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fcostarodrigo/walk

Transverse files recursively

  • 4.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Walk

Codacy Badge Build Status codecov

Simple node module to transverse files recursively.

Installation

npm install @fcostarodrigo/walk

Usage

const walk = require("@fcostarodrigo/walk");

async function main() {
  for await (const file of walk()) {
    console.log(file);
  }
}

main();

Documentation

walk(root, lisFolders, walkFolder, readdir);

root: Optional folder to transverse. Defaults to ..

includeFolders: Optional flag to list folders. Defaults to false.

walkFolder: Optional callback to decide if a folder is going to be transversed.

readdir: Optional node function override.

The function is an async generator that yields the paths of the files recursively.

License

MIT License

Keywords

FAQs

Package last updated on 22 Apr 2020

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