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 | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7781