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

recursive-dir-reader

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recursive-dir-reader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "recursive-dir-reader",
"version": "1.0.0",
"version": "1.0.1",
"description": "reading directory and subdirectories",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,3 +14,3 @@ ##### The module is required for sync or async reading of dir and subdirs.

##Usage
## Usage
For example, we have the following directory structure:

@@ -65,3 +65,24 @@

// ]
```
You can easily combine this methods.
```javascript
const filesIntoDirAsync = readdir.async('./someDir', path => {
console.info(path);
});
// ./someDir/someFile1.js
// ./someDir/someFile2.js
// ./someDir/someSubDir/someModule1.js
// ./someDir/someSubDir/someModule2.js
// ./someDir/someSubDir/folderWithOneFile/template.html
setTimeout(() => {
console.info(filesIntoDirAsync);
}, 1000);
// [
// './someDir/someFile1.js',
// './someDir/someFile2.js',
// './someDir/someSubDir/someModule1.js',
// './someDir/someSubDir/someModule2.js',
// './someDir/someSubDir/folderWithOneFile/template.html'
// ]
```

Sorry, the diff of this file is not supported yet

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