Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fs-readdir-recursive

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-readdir-recursive

Recursively read a directory

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created

What is fs-readdir-recursive?

The fs-readdir-recursive npm package is a utility for reading directories recursively. It allows you to list all files within a directory and its subdirectories, making it useful for tasks that require directory traversal.

What are fs-readdir-recursive's main functionalities?

Read all files in a directory recursively

This feature allows you to read all files in a specified directory and its subdirectories. The code sample demonstrates how to use the package to list all files within 'path/to/directory'.

const read = require('fs-readdir-recursive');
const files = read('path/to/directory');
console.log(files);

Filter files based on a condition

This feature allows you to filter the files based on a condition. The code sample demonstrates how to list only JavaScript files within 'path/to/directory' and its subdirectories.

const read = require('fs-readdir-recursive');
const files = read('path/to/directory', (name) => name.endsWith('.js'));
console.log(files);

Other packages similar to fs-readdir-recursive

FAQs

Package last updated on 10 Nov 2017

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