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

rrdir

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rrdir - npm Package Compare versions

Comparing version 10.0.2 to 10.0.3

7

index.js

@@ -33,7 +33,6 @@ import {readdir, stat, lstat} from "fs/promises";

function makeMatcher(filters) {
const res = filters.map(f => new RegExp(`${f.replace(/\*+/g, ".*").replace(/\/\.\*/, ".*")}$`));
return str => {
for (const filter of filters) {
const re = new RegExp(`${filter.replace(/\*+/g, ".*").replace(/\/\.\*/, ".*")}$`);
const matches = re.test(str);
if (matches) return true;
for (const re of res) {
if (re.test(str)) return true;
}

@@ -40,0 +39,0 @@ return false;

{
"name": "rrdir",
"version": "10.0.2",
"version": "10.0.3",
"description": "Recursive directory reader with a delightful API",

@@ -23,4 +23,4 @@ "author": "silverwind <me@silverwind.io>",

"tempy": "3.0.0",
"updates": "13.1.5",
"versions": "9.3.0"
"updates": "13.1.7",
"versions": "9.3.2"
},

@@ -27,0 +27,0 @@ "keywords": [

@@ -6,3 +6,3 @@ # rrdir

`rrdir` recursively reads a directory and returns entries within via an async iterator or async/sync as Array. It has minimal dependencies and can typically iterate millions of files in a matter of seconds. Memory usage is `O(1)` for the async iterator and `O(n)` for the Array variants.
`rrdir` recursively reads a directory and returns entries within via an async iterator or async/sync as Array. It has no dependencies and can typically iterate millions of files in a matter of seconds. Memory usage is `O(1)` for the async iterator and `O(n)` for the Array variants.

@@ -9,0 +9,0 @@ ## Usage

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