Socket
Socket
Sign inDemoInstall

fs-readdir-recursive

Package Overview
Dependencies
0
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

5

index.js

@@ -15,3 +15,5 @@ var fs = require('fs')

fs.readdirSync(dir)
.filter(filter)
.filter(function (name, index) {
return filter(name, index, dir)
})
.forEach(function (name) {

@@ -29,2 +31,1 @@ read(root, filter, files, path.join(prefix, name))

}

4

package.json
{
"name": "fs-readdir-recursive",
"description": "Recursively read a directory",
"version": "1.0.0",
"version": "1.1.0",
"scripts": {

@@ -12,3 +12,3 @@ "test": "mocha --reporter spec",

"istanbul": "0",
"mocha": "*",
"mocha": "3",
"should": "*"

@@ -15,0 +15,0 @@ },

@@ -36,7 +36,7 @@ # fs.readdirSyncRecursive

`root` is the directory you wish to scan. `filter` is an optional filter for the files. By default, filter is:
`root` is the directory you wish to scan. `filter` is an optional filter for the files with three params(name, index, dir). By default, filter is:
```js
function (x) {
return x[0] !== '.'
function (name) {
return name[0] !== '.'
}

@@ -43,0 +43,0 @@ ```

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