@rust-gear/glob 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -10
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
# @rust-gear/glob
|
|
2
2
|
|
|
3
|
-
A high-performance napi-rs glob library powered by Rust's [globset](https://docs.rs/globset).
|
|
3
|
+
A high-performance [napi-rs](https://napi.rs/) glob library powered by Rust's [globset](https://docs.rs/globset).
|
|
4
4
|
|
|
5
5
|
## ⚡ Performance
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Faster than Node.js built-in fs.globSync:
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **8x faster** for large file sets (5000+ files)
|
|
11
|
-
|
|
12
|
-
Based on benchmarks with 4,000-12,000 files across various patterns.
|
|
9
|
+
- **3-9x faster** for typical glob patterns
|
|
13
10
|
|
|
14
11
|
## Installation
|
|
15
12
|
|
|
@@ -20,13 +17,13 @@ npm install --save-dev @rust-gear/glob
|
|
|
20
17
|
## Usage
|
|
21
18
|
|
|
22
19
|
```js
|
|
23
|
-
import
|
|
20
|
+
import * as rs from "@rust-gear/glob";
|
|
24
21
|
|
|
25
|
-
const files = globSync("src/**/*.rs");
|
|
22
|
+
const files = rs.globSync("src/**/*.rs");
|
|
26
23
|
|
|
27
|
-
const filesAsync = await glob("src/**/*.rs");
|
|
24
|
+
const filesAsync = await rs.glob("src/**/*.rs");
|
|
28
25
|
|
|
29
|
-
const files = globSync("**/*.rs", {
|
|
26
|
+
const files = rs.globSync("**/*.rs", {
|
|
30
27
|
cwd: "src",
|
|
31
28
|
exclude: ["**/test/**", "**/target/**"],
|
|
32
29
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rust-gear/glob",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Node.js bindings for Rust glob library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rust-gear",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"@napi-rs/cli": "^2.18.4"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"@rust-gear/glob-darwin-arm64": "0.2.
|
|
57
|
-
"@rust-gear/glob-darwin-x64": "0.2.
|
|
58
|
-
"@rust-gear/glob-linux-arm64-gnu": "0.2.
|
|
59
|
-
"@rust-gear/glob-linux-arm64-musl": "0.2.
|
|
60
|
-
"@rust-gear/glob-linux-x64-gnu": "0.2.
|
|
61
|
-
"@rust-gear/glob-linux-x64-musl": "0.2.
|
|
62
|
-
"@rust-gear/glob-win32-arm64-msvc": "0.2.
|
|
63
|
-
"@rust-gear/glob-win32-ia32-msvc": "0.2.
|
|
64
|
-
"@rust-gear/glob-win32-x64-msvc": "0.2.
|
|
56
|
+
"@rust-gear/glob-darwin-arm64": "0.2.8",
|
|
57
|
+
"@rust-gear/glob-darwin-x64": "0.2.8",
|
|
58
|
+
"@rust-gear/glob-linux-arm64-gnu": "0.2.8",
|
|
59
|
+
"@rust-gear/glob-linux-arm64-musl": "0.2.8",
|
|
60
|
+
"@rust-gear/glob-linux-x64-gnu": "0.2.8",
|
|
61
|
+
"@rust-gear/glob-linux-x64-musl": "0.2.8",
|
|
62
|
+
"@rust-gear/glob-win32-arm64-msvc": "0.2.8",
|
|
63
|
+
"@rust-gear/glob-win32-ia32-msvc": "0.2.8",
|
|
64
|
+
"@rust-gear/glob-win32-x64-msvc": "0.2.8"
|
|
65
65
|
}
|
|
66
66
|
}
|