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 1.1.0 to 1.1.1

10

index.js

@@ -16,3 +16,3 @@ #!/usr/bin/env node

exclude: [],
multimatch: {
minimatch: {
matchBase: true,

@@ -39,3 +39,3 @@ dot: true,

try {
const exclude = (opts.exclude.length) && !!(multimatch(dir, opts.exclude, opts.multimatch).length);
const exclude = (opts.exclude.length) && !!(multimatch(dir, opts.exclude, opts.minimatch).length);
if (!exclude) {

@@ -58,3 +58,3 @@ entries = await readdir(dir, {encoding: opts.encoding, withFileTypes: scandir});

if (opts.exclude.length && !!(multimatch(path, opts.exclude, opts.multimatch).length)) {
if (opts.exclude.length && !!(multimatch(path, opts.exclude, opts.minimatch).length)) {
continue;

@@ -97,3 +97,3 @@ }

try {
const exclude = (opts.exclude.length) && !!(multimatch(dir, opts.exclude, opts.multimatch).length);
const exclude = (opts.exclude.length) && !!(multimatch(dir, opts.exclude, opts.minimatch).length);
if (!exclude) {

@@ -116,3 +116,3 @@ entries = fs.readdirSync(dir, {encoding: opts.encoding, withFileTypes: scandir});

if (opts.exclude.length && !!(multimatch(path, opts.exclude, opts.multimatch).length)) {
if (opts.exclude.length && !!(multimatch(path, opts.exclude, opts.minimatch).length)) {
continue;

@@ -119,0 +119,0 @@ }

{
"name": "rrdir",
"version": "1.1.0",
"version": "1.1.1",
"description": "The fastest recursive readdir in town",

@@ -5,0 +5,0 @@ "author": "silverwind <me@silverwind.io>",

@@ -6,5 +6,5 @@ # rrdir

Recursively crawls a directory to obtain paths and information on directory/symlink on each entry. Takes advantage of `uv_fs_scandir` support since Node.js 10.10, which may improve performance by up to 200% over previous efforts.
Recursively crawls a directory to obtain paths and information on directory/symlink on each entry. Takes advantage of `uv_fs_scandir` in Node.js 10.10 or higher, which increases performance significantly.
Some non-scientific benchmark results comparing against the popular `walkdir` module crawling the [Node.js repository](https://github.com/nodejs/node) on a NVMe SSD:
Comparison against the `walkdir` module crawling the [Node.js repository](https://github.com/nodejs/node) on a NVMe SSD:

@@ -11,0 +11,0 @@ | Test | Engine | OS | Runtime |

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