@aminzer/traverse-directory 1.2.6 → 1.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/LICENSE CHANGED
@@ -1,9 +1,9 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 Aliaksei Minzer
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Aliaksei Minzer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,88 +1,88 @@
1
- ### Overview
2
-
3
- [NodeJS](https://nodejs.org) utility for recursively iterating over directory contents.
4
-
5
- It allows to traverse through all subdirectories and files within a specified directory.
6
-
7
- ### Installation
8
-
9
- ```bash
10
- npm i @aminzer/traverse-directory
11
- ```
12
-
13
- ### Usage examples
14
-
15
- ```typescript
16
- import { traverseDirectory } from '@aminzer/traverse-directory';
17
-
18
- await traverseDirectory('/path/to/directory', ({ isFile, relativePath }) => {
19
- console.log(`${isFile ? 'File' : 'Directory'} ${relativePath} was found`);
20
- });
21
- ```
22
-
23
- ### API
24
-
25
- **traverseDirectory**
26
-
27
- ##### Overview
28
-
29
- `traverseDirectory` recursively iterates over the contents of a directory.
30
-
31
- ```typescript
32
- import { directoryExists } from '@aminzer/traverse-directory';
33
-
34
- await traverseDirectory(dirPath, onEachChild);
35
- ```
36
-
37
- ##### Parameters
38
-
39
- * `dirPath` (`string`, required) - path to the directory whose contents should be iterated.
40
- * `onEachChild` (`function`, required) - callback invoked for each child file and directory.
41
-
42
- `onEachChild` callback accepts following arguments:
43
- * `fsEntry` (`FsEntry`) - currently iterated child file or directory.
44
- * `additionalArgs` (`object`, optional) - additional callback arguments:
45
- * `skipEntryChildrenIteration` (`function`) - call this function within `onEachChild` to skip iterating the children of the current entry.
46
-
47
- ##### Return value
48
-
49
- `Promise` that resolves when the directory traversal is complete.
50
-
51
- **FsEntry**
52
-
53
- ##### Overview
54
-
55
- `FsEntry` - class representing File System Entry (file or directory).
56
-
57
- ```typescript
58
- import { FsEntry } from '@aminzer/traverse-directory';
59
- ```
60
-
61
- Instance properties:
62
- * `name` (`string`) - name of entry.
63
- * `absolutePath` (`string`) - absolute path to entry.
64
- * `relativePath` (`string`) - relative path to entry. It's relative to the directory passed to `traverseDirectory`.
65
- * `size` (`number`) - size of file in bytes, `0` for directories.
66
- * `isFile` (`boolean`) - `true` if entry is file.
67
- * `isDirectory` (`boolean`) - `true` if entry is directory.
68
-
69
-
70
- **directoryExists**
71
-
72
- ##### Overview
73
-
74
- `directoryExists` is an async function that checks if a given path exists and corresponds to a directory.
75
-
76
- ```typescript
77
- import { directoryExists } from '@aminzer/traverse-directory';
78
-
79
- const exists = await directoryExists('/path/to/directory');
80
- ```
81
-
82
- ##### Parameters
83
-
84
- * `dirPath` (`string`, required) - path to the directory to check.
85
-
86
- ##### Return value
87
-
88
- `Promise<boolean>` that resolves to `true` if the directory exists, or `false` otherwise.
1
+ ### Overview
2
+
3
+ [NodeJS](https://nodejs.org) utility for recursively iterating over directory contents.
4
+
5
+ It allows to traverse through all subdirectories and files within a specified directory.
6
+
7
+ ### Installation
8
+
9
+ ```bash
10
+ npm i @aminzer/traverse-directory
11
+ ```
12
+
13
+ ### Usage examples
14
+
15
+ ```typescript
16
+ import { traverseDirectory } from '@aminzer/traverse-directory';
17
+
18
+ await traverseDirectory('/path/to/directory', ({ isFile, relativePath }) => {
19
+ console.log(`${isFile ? 'File' : 'Directory'} ${relativePath} was found`);
20
+ });
21
+ ```
22
+
23
+ ### API
24
+
25
+ **traverseDirectory**
26
+
27
+ ##### Overview
28
+
29
+ `traverseDirectory` recursively iterates over the contents of a directory.
30
+
31
+ ```typescript
32
+ import { directoryExists } from '@aminzer/traverse-directory';
33
+
34
+ await traverseDirectory(dirPath, onEachChild);
35
+ ```
36
+
37
+ ##### Parameters
38
+
39
+ * `dirPath` (`string`, required) - path to the directory whose contents should be iterated.
40
+ * `onEachChild` (`function`, required) - callback invoked for each child file and directory.
41
+
42
+ `onEachChild` callback accepts following arguments:
43
+ * `fsEntry` (`FsEntry`) - currently iterated child file or directory.
44
+ * `additionalArgs` (`object`, optional) - additional callback arguments:
45
+ * `skipEntryChildrenIteration` (`function`) - call this function within `onEachChild` to skip iterating the children of the current entry.
46
+
47
+ ##### Return value
48
+
49
+ `Promise` that resolves when the directory traversal is complete.
50
+
51
+ **FsEntry**
52
+
53
+ ##### Overview
54
+
55
+ `FsEntry` - class representing File System Entry (file or directory).
56
+
57
+ ```typescript
58
+ import { FsEntry } from '@aminzer/traverse-directory';
59
+ ```
60
+
61
+ Instance properties:
62
+ * `name` (`string`) - name of entry.
63
+ * `absolutePath` (`string`) - absolute path to entry.
64
+ * `relativePath` (`string`) - relative path to entry. It's relative to the directory passed to `traverseDirectory`.
65
+ * `size` (`number`) - size of file in bytes, `0` for directories.
66
+ * `isFile` (`boolean`) - `true` if entry is file.
67
+ * `isDirectory` (`boolean`) - `true` if entry is directory.
68
+
69
+
70
+ **directoryExists**
71
+
72
+ ##### Overview
73
+
74
+ `directoryExists` is an async function that checks if a given path exists and corresponds to a directory.
75
+
76
+ ```typescript
77
+ import { directoryExists } from '@aminzer/traverse-directory';
78
+
79
+ const exists = await directoryExists('/path/to/directory');
80
+ ```
81
+
82
+ ##### Parameters
83
+
84
+ * `dirPath` (`string`, required) - path to the directory to check.
85
+
86
+ ##### Return value
87
+
88
+ `Promise<boolean>` that resolves to `true` if the directory exists, or `false` otherwise.
@@ -2,30 +2,37 @@ import { join } from 'node:path';
2
2
  import { stat, readdir } from 'node:fs/promises';
3
3
  import { FsEntry } from '../models/index.js';
4
4
  import { iterateInSeries } from '../utils/iteration/index.js';
5
+ const STAT_CONCURRENCY = 64;
5
6
  const traverseDirectoryRecursive = async (absoluteDirPath, relativeDirPath, onEachChild) => {
6
- const entries = await readdir(absoluteDirPath);
7
- await iterateInSeries(entries, async (name) => {
8
- const absolutePath = join(absoluteDirPath, name);
9
- const relativePath = relativeDirPath ? join(relativeDirPath, name) : name;
10
- const stats = await stat(absolutePath);
11
- const isFile = stats.isFile();
12
- const size = isFile ? stats.size : 0;
13
- const fsEntry = new FsEntry({
14
- name,
15
- absolutePath,
16
- relativePath,
17
- isFile,
18
- size,
7
+ const entries = await readdir(absoluteDirPath, { withFileTypes: true });
8
+ for (let batchStart = 0; batchStart < entries.length; batchStart += STAT_CONCURRENCY) {
9
+ const batchEntries = entries.slice(batchStart, batchStart + STAT_CONCURRENCY);
10
+ const batchStats = await Promise.all(batchEntries.map((entry) => {
11
+ return entry.isDirectory() ? null : stat(join(absoluteDirPath, entry.name));
12
+ }));
13
+ await iterateInSeries(batchEntries, async ({ name }, index) => {
14
+ const absolutePath = join(absoluteDirPath, name);
15
+ const relativePath = relativeDirPath ? join(relativeDirPath, name) : name;
16
+ const stats = batchStats[index];
17
+ const isFile = stats !== null && stats.isFile();
18
+ const size = isFile ? stats.size : 0;
19
+ const fsEntry = new FsEntry({
20
+ name,
21
+ absolutePath,
22
+ relativePath,
23
+ isFile,
24
+ size,
25
+ });
26
+ let iterateEntry = fsEntry.isDirectory;
27
+ const skipEntryChildrenIteration = () => {
28
+ iterateEntry = false;
29
+ };
30
+ await onEachChild(fsEntry, { skipEntryChildrenIteration });
31
+ if (iterateEntry) {
32
+ await traverseDirectoryRecursive(absolutePath, relativePath, onEachChild);
33
+ }
19
34
  });
20
- let iterateEntry = fsEntry.isDirectory;
21
- const skipEntryChildrenIteration = () => {
22
- iterateEntry = false;
23
- };
24
- await onEachChild(fsEntry, { skipEntryChildrenIteration });
25
- if (iterateEntry) {
26
- await traverseDirectoryRecursive(absolutePath, relativePath, onEachChild);
27
- }
28
- });
35
+ }
29
36
  };
30
37
  export default traverseDirectoryRecursive;
31
38
  //# sourceMappingURL=traverseDirectoryRecursive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"traverseDirectoryRecursive.js","sourceRoot":"","sources":["../../src/traverseDirectory/traverseDirectoryRecursive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC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IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAE1E,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;YAChC,MAAM,MAAM,GAAG,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAErC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;gBAC1B,IAAI;gBACJ,YAAY;gBACZ,YAAY;gBACZ,MAAM;gBACN,IAAI;aACL,CAAC,CAAC;YAEH,IAAI,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;YAEvC,MAAM,0BAA0B,GAAG,GAAG,EAAE;gBACtC,YAAY,GAAG,KAAK,CAAC;YACvB,CAAC,CAAC;YAEF,MAAM,WAAW,CAAC,OAAO,EAAE,EAAE,0BAA0B,EAAE,CAAC,CAAC;YAE3D,IAAI,YAAY,EAAE,CAAC;gBACjB,MAAM,0BAA0B,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;YAC5E,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const iterateInSeries: <T>(array: T[], callback: (element: T, index?: number) => void | Promise<void>) => Promise<void>;
1
+ declare const iterateInSeries: <T>(array: T[], callback: (element: T, index: number) => void | Promise<void>) => Promise<void>;
2
2
  export default iterateInSeries;
@@ -1 +1 @@
1
- {"version":3,"file":"iterateInSeries.js","sourceRoot":"","sources":["../../../src/utils/iteration/iterateInSeries.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,KAAK,EAC3B,KAAU,EACV,QAA8D,EAC/C,EAAE;IACjB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"iterateInSeries.js","sourceRoot":"","sources":["../../../src/utils/iteration/iterateInSeries.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,KAAK,EAC3B,KAAU,EACV,QAA6D,EAC9C,EAAE;IACjB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@aminzer/traverse-directory",
3
- "version": "1.2.6",
4
- "description": "Utility for directory child entries recursive iteration",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "type": "module",
9
- "keywords": [
10
- "traverse",
11
- "directory",
12
- "fs",
13
- "filesystem",
14
- "file",
15
- "folder",
16
- "iterate",
17
- "recursion",
18
- "recursive"
19
- ],
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/aminzer/traverse-directory.git"
23
- },
24
- "license": "MIT",
25
- "author": "aminzer",
26
- "main": "dist/index.js",
27
- "types": "dist/index.d.ts",
28
- "files": [
29
- "dist"
30
- ],
31
- "scripts": {
32
- "build": "tsc --project tsconfig.build.json",
33
- "build:watch": "npm run build -- --watch",
34
- "clean": "rimraf dist",
35
- "codestyle": "run-p lint typescript:check",
36
- "lint": "eslint src/**/*.ts",
37
- "lint:fix": "npm run lint -- --fix",
38
- "prepare": "npm run rebuild",
39
- "rebuild": "run-s clean build",
40
- "test": "tsx --test src/**/*.test.ts",
41
- "typescript:check": "tsc --project tsconfig.json --noEmit"
42
- },
43
- "devDependencies": {
44
- "@eslint/js": "^9.36.0",
45
- "@types/node": "^24.5.2",
46
- "eslint": "^9.36.0",
47
- "eslint-config-prettier": "^10.1.8",
48
- "eslint-plugin-prettier": "^5.5.4",
49
- "npm-run-all": "^4.1.5",
50
- "prettier": "^3.6.2",
51
- "rimraf": "^6.0.1",
52
- "tsx": "^4.20.6",
53
- "typescript": "^5.9.2",
54
- "typescript-eslint": "^8.44.1"
55
- },
56
- "engines": {
57
- "node": ">=22.0.0"
58
- }
59
- }
1
+ {
2
+ "name": "@aminzer/traverse-directory",
3
+ "version": "1.2.8",
4
+ "description": "Utility for directory child entries recursive iteration",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "type": "module",
9
+ "keywords": [
10
+ "traverse",
11
+ "directory",
12
+ "fs",
13
+ "filesystem",
14
+ "file",
15
+ "folder",
16
+ "iterate",
17
+ "recursion",
18
+ "recursive"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/aminzer/traverse-directory.git"
23
+ },
24
+ "license": "MIT",
25
+ "author": "aminzer",
26
+ "main": "dist/index.js",
27
+ "types": "dist/index.d.ts",
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsc --project tsconfig.build.json",
33
+ "build:watch": "npm run build -- --watch",
34
+ "clean": "rimraf dist",
35
+ "codestyle": "run-p lint typescript:check",
36
+ "lint": "eslint src/**/*.ts",
37
+ "lint:fix": "npm run lint -- --fix",
38
+ "prepare": "npm run rebuild",
39
+ "rebuild": "run-s clean build",
40
+ "test": "tsx --test src/**/*.test.ts",
41
+ "typescript:check": "tsc --project tsconfig.json --noEmit"
42
+ },
43
+ "devDependencies": {
44
+ "@eslint/js": "^9.36.0",
45
+ "@types/node": "^24.5.2",
46
+ "eslint": "^9.36.0",
47
+ "eslint-config-prettier": "^10.1.8",
48
+ "eslint-plugin-prettier": "^5.5.4",
49
+ "npm-run-all": "^4.1.5",
50
+ "prettier": "^3.6.2",
51
+ "rimraf": "^6.0.1",
52
+ "tsx": "^4.20.6",
53
+ "typescript": "^5.9.2",
54
+ "typescript-eslint": "^8.44.1"
55
+ },
56
+ "engines": {
57
+ "node": ">=22.0.0"
58
+ }
59
+ }