New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

explore

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

explore

Explore a file structure.

0.2.0
latest
npm
Version published
Maintainers
1
Created
Source

Walks recursively down the file tree starting from the current directory executing functions on arbitrary file types.

example

function log(file) { console.log(file) }

// print the path of json or ruby files
explore("json|rb", log);

It can also accept an array of callbacks and a starting directory

explore(fileTypes, callbacks, startingPath, errCallback)
  • fileTypes string
  • callbacks function or array of functions
  • startingPath string (absolute)
  • errCallback function where first arg is error

Keywords

walk

FAQs

Package last updated on 07 Jan 2015

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