
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-recursive-directory
Advanced tools
Unlock the power of Node.js with Node Recursive Directory — your ultimate solution for seamless directory traversal. Whether you're building complex file systems, developing static site generators, or just need a robust way to manage files, this package delivers unmatched simplicity, speed, and reliability.
Node Recursive Directory is a Must-HaveImagine a tool so intuitive, yet powerful, that it transforms the way you handle file operations. With just a few lines of code, Node Recursive Directory allows you to:
Node Recursive Directory adapts to your needs. Filter by extension, exclude directories, and handle large file sets without breaking a sweat.Get started in seconds. Install via npm:
npm install node-recursive-directory
Or yarn:
yarn add node-recursive-directory
const scanDirectory = require("node-recursive-directory");
scanDirectory("./path/to/dir")
.then((files) => console.log(files))
.catch((err) => console.error(err));
const scanDirectory = require("node-recursive-directory");
(async () => {
try {
const files = await scanDirectory("./path/to/dir");
console.log(files);
} catch (err) {
console.error(err);
}
})();
Need more than just file paths? Get detailed file info with a simple switch.
const scanDirectory = require("node-recursive-directory");
scanDirectory("./path/to/dir", true)
.then((filesObject) => console.log(filesObject))
.catch((err) => console.error(err));
const scanDirectory = require("node-recursive-directory");
(async () => {
try {
const filesObject = await scanDirectory("./path/to/dir", true);
console.log(filesObject);
} catch (err) {
console.error(err);
}
})();
const scanDirectory = require("node-recursive-directory");
// Example: Get detailed file information
(async () => {
try {
const filesObject = await scanDirectory("./my-project", true);
filesObject.forEach((file) => {
console.log(
`Found file: \${file.filename} in directory: \${file.dirname}`
);
});
} catch (err) {
console.error("Error:", err);
}
})();
Node Recursive Directory isn't just a tool—it's part of a vibrant, growing community of developers who demand efficiency, flexibility, and performance in their projects. With over 2000+ weekly downloads, developers like you are choosing this package for its simplicity and power.
But here's the thing—despite its popularity, our GitHub repository is missing something crucial: your star.
We understand that starring a project on GitHub is a simple action, but it means the world to us. If Node Recursive Directory has made your work easier or saved you time, please consider giving us a star.
We promise to continue delivering quality updates, listening to your feedback, and making Node Recursive Directory even better with each release.
Thank you for your support!
Contributions are always welcome! If you have ideas for new features, improvements, or just want to report an issue, head over to our GitHub repository. Let's build something great together!
FAQs
Npm package to get directory files recursively
The npm package node-recursive-directory receives a total of 1,712 weekly downloads. As such, node-recursive-directory popularity was classified as popular.
We found that node-recursive-directory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.