@rust-gear/glob 0.2.6 → 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.
Files changed (2) hide show
  1. package/README.md +7 -10
  2. package/package.json +10 -11
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
- Significantly faster than Node.js built-in `fs.globSync`:
7
+ Faster than Node.js built-in fs.globSync:
8
8
 
9
- - **2-3x faster** for typical glob patterns
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 { globSync, glob } from "@rust-gear/glob";
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.6",
3
+ "version": "0.2.8",
4
4
  "description": "Node.js bindings for Rust glob library",
5
5
  "keywords": [
6
6
  "rust-gear",
@@ -15,7 +15,6 @@
15
15
  "license": "Apache-2.0",
16
16
  "author": "Refirst 11",
17
17
  "main": "index.js",
18
- "module": "index.mjs",
19
18
  "types": "index.d.ts",
20
19
  "files": [
21
20
  "index.js",
@@ -54,14 +53,14 @@
54
53
  "@napi-rs/cli": "^2.18.4"
55
54
  },
56
55
  "optionalDependencies": {
57
- "@rust-gear/glob-darwin-arm64": "0.2.6",
58
- "@rust-gear/glob-darwin-x64": "0.2.6",
59
- "@rust-gear/glob-linux-arm64-gnu": "0.2.6",
60
- "@rust-gear/glob-linux-arm64-musl": "0.2.6",
61
- "@rust-gear/glob-linux-x64-gnu": "0.2.6",
62
- "@rust-gear/glob-linux-x64-musl": "0.2.6",
63
- "@rust-gear/glob-win32-arm64-msvc": "0.2.6",
64
- "@rust-gear/glob-win32-ia32-msvc": "0.2.6",
65
- "@rust-gear/glob-win32-x64-msvc": "0.2.6"
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"
66
65
  }
67
66
  }