@fcostarodrigo/walk
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

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

/@fcostarodrigo/walk/

    Package Sidebar

    Install

    npm i @fcostarodrigo/walk

    Weekly Downloads

    205

    Version

    6.0.1

    License

    MIT

    Unpacked Size

    8.21 kB

    Total Files

    19

    Last publish

    Collaborators

    • fcostarodrigo