Socket
Socket
Sign inDemoInstall

explore

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    explore

Explore a file structure.


Version published
Maintainers
1
Install size
3.67 kB
Created

Readme

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

FAQs

Last updated on 07 Jan 2015

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc