Socket
Socket
Sign inDemoInstall

@fcostarodrigo/walk

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fcostarodrigo/walk

Transverse files recursively


Version published
Weekly downloads
174
increased by135.14%
Maintainers
1
Install size
8.02 kB
Created
Weekly downloads
 

Readme

Source

Walk

Simple node module to transverse files recursively.

Installation

npm install @fcostarodrigo/walk

Usage

import { walk } from "@fcostarodrigo/walk";

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

Documentation

walk(root, lisFolders, walkFolder);

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.

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

Changelog

License

MIT License

Keywords

FAQs

Last updated on 22 May 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc