rrdir 10.1.0 → 10.1.1

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 (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +3 -3
  3. package/package.json +6 -7
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  > Recursive directory reader with a delightful API
5
5
 
6
- `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.
6
+ `rrdir` recursively reads a directory and returns entries within via an async iterator or async/sync as Array. It has zero 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.
7
7
 
8
8
  ## Usage
9
9
  ```console
@@ -42,7 +42,7 @@ The directory to read, either absolute or relative. Pass a `Buffer` to switch th
42
42
  - `exclude` *Array*: Path globs to exclude, e.g. `["**/*.js"]`. Default: `undefined`.
43
43
  - `include` *Array*: Path globs to include, e.g. `["**/*.map"]`. Default: `undefined`.
44
44
  - `strict` *boolean*: Whether to throw immediately when reading an entry fails. Default: `false`.
45
- - `insensitive` *boolean: Whether `include` and `exclude` match case-insensitively. Default: `false`.
45
+ - `insensitive` *boolean*: Whether `include` and `exclude` match case-insensitively. Default: `false`.
46
46
 
47
47
  #### `entry` *Object*
48
48
 
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import {readdir, stat, lstat} from "fs/promises";
2
- import {readdirSync, statSync, lstatSync} from "fs";
3
- import {sep} from "path";
1
+ import {readdir, stat, lstat} from "node:fs/promises";
2
+ import {readdirSync, statSync, lstatSync} from "node:fs";
3
+ import {sep} from "node:path";
4
4
 
5
5
  const sepBuffer = Buffer.from(sep);
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrdir",
3
- "version": "10.1.0",
3
+ "version": "10.1.1",
4
4
  "description": "Recursive directory reader with a delightful API",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/rrdir",
@@ -15,12 +15,11 @@
15
15
  "index.js"
16
16
  ],
17
17
  "devDependencies": {
18
- "eslint": "8.24.0",
19
- "eslint-config-silverwind": "57.0.1",
20
- "jest": "29.1.2",
21
- "tempy": "3.0.0",
22
- "updates": "13.1.8",
23
- "versions": "9.3.3"
18
+ "eslint": "8.29.0",
19
+ "eslint-config-silverwind": "65.0.0",
20
+ "updates": "13.2.4",
21
+ "versions": "10.4.1",
22
+ "vitest": "0.25.8"
24
23
  },
25
24
  "keywords": [
26
25
  "recursive readdir",