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.0.2
  • Source
  • npm
  • Socket score

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

function walk(
  root?: string,
  includeFolders?: boolean,
): AsyncIterableIterator<string>;

root: Path to where the search starts. Defaults to ..

includeFolders: If paths of folders should be returned. Defaults to false.

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

Development

Full tests with coverage

npm test

Unit tests and watch for changes

npm run unit-test

License

MIT License

Keywords

FAQs

Package last updated on 03 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