binary-collections 2.0.11 → 2.0.13
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/binaries/binary-executor.cjs +89 -13
- package/binaries/clean-nodemodule.cjs +89 -13
- package/binaries/clean-nodemodules.cjs +89 -13
- package/binaries/dev.cjs +89 -13
- package/binaries/empty.cjs +89 -13
- package/binaries/git-reduce-size.cjs +89 -13
- package/binaries/javakill.cjs +89 -13
- package/binaries/kill-process.cjs +89 -13
- package/binaries/nodekill.cjs +89 -13
- package/binaries/prod.cjs +89 -13
- package/binaries/py.cjs +89 -13
- package/binaries/rmfind.cjs +89 -13
- package/binaries/rmx +15 -1
- package/binaries/rmx.cjs +89 -13
- package/binaries/rmx.cmd +12 -0
- package/binaries/submodule-token.cjs +89 -13
- package/binaries/test-cjs +9 -1
- package/binaries/test-cjs.cjs +89 -13
- package/binaries/test-cjs.cmd +16 -1
- package/binaries/test-esm +16 -0
- package/binaries/test-esm.cjs +254 -0
- package/binaries/test-esm.cmd +23 -0
- package/binaries/yarn-clean +1 -1
- package/binaries/yarn-clean.cjs +89 -13
- package/binaries/yarn-clean.cmd +1 -1
- package/binaries/yarn-clean.py +33 -15
- package/binaries/yc +131 -0
- package/binaries/yc.cjs +254 -0
- package/binaries/ycw +256 -0
- package/binaries/ycw.cjs +254 -0
- package/docs-src/binary-collections.md +34 -0
- package/docs-src/changelog.md +26 -0
- package/docs-src/clean-github-actions-caches.md +91 -2
- package/docs-src/copy-move-file.md +59 -0
- package/docs-src/del-gradle.md +17 -0
- package/docs-src/del-ps.md +28 -0
- package/docs-src/downloader.md +62 -0
- package/docs-src/env-helpers.md +29 -0
- package/docs-src/find-node-modules.md +17 -0
- package/docs-src/git-diff.md +33 -0
- package/docs-src/git-fix.md +34 -0
- package/docs-src/git-purge.md +17 -0
- package/docs-src/git-reduce-size.md +17 -0
- package/docs-src/git-undo.md +21 -0
- package/docs-src/kill-night-crows.md +26 -0
- package/docs-src/node-cache-cleaner.md +182 -0
- package/docs-src/node-executor.md +50 -0
- package/docs-src/node-package-packer.md +48 -0
- package/docs-src/npm-run-series.md +43 -0
- package/docs-src/package-resolutions-updater.md +22 -0
- package/docs-src/php-cs-fixer-staged.md +19 -0
- package/docs-src/print-directory-tree.md +35 -0
- package/docs-src/print-tarball-tree.md +55 -0
- package/docs-src/py.md +19 -0
- package/docs-src/remove-module.md +32 -0
- package/docs-src/rmfind-rmx.md +21 -0
- package/docs-src/rmpath.md +38 -0
- package/docs-src/run-by-checksum.md +87 -0
- package/docs-src/submodule-install.md +31 -0
- package/docs-src/submodule-remove.md +22 -0
- package/docs-src/submodule-token.md +17 -0
- package/docs-src/test-runners.md +21 -0
- package/docs-src/yarn-install.md +31 -0
- package/docs-src/yarn-reinstall.md +27 -0
- package/lib/binary-collections/config.cjs +126 -0
- package/lib/binary-collections/config.mjs +7 -0
- package/lib/binary-collections/executeScript.cjs +19 -0
- package/lib/binary-collections/executeScript.d.cts +12 -0
- package/lib/binary-collections/executeScript.mjs +6 -0
- package/lib/binary-collections/findScript.cjs +309 -0
- package/lib/binary-collections/findScript.d.cts +12 -0
- package/lib/binary-collections/findScript.mjs +7 -0
- package/lib/binary-collections/listScript.cjs +291 -0
- package/lib/binary-collections/listScript.d.cts +19 -0
- package/lib/binary-collections/listScript.mjs +7 -0
- package/lib/binary-collections.cjs +264 -157
- package/lib/binary-collections.mjs +26 -286
- package/lib/changelog.cjs +9 -14
- package/lib/changelog.mjs +2 -2
- package/lib/chunk-2MN4VPV2.mjs +246 -0
- package/lib/chunk-6C7KTYGZ.mjs +41 -0
- package/lib/{chunk-Z6JLYU2J.mjs → chunk-6RK5UCTP.mjs} +7 -12
- package/lib/chunk-CD3HF3LK.mjs +190 -0
- package/lib/chunk-FLYSZFLW.mjs +61 -0
- package/lib/{chunk-N436BNBK.mjs → chunk-GAGABICI.mjs} +19 -13
- package/lib/chunk-H44UWUFY.mjs +105 -0
- package/lib/chunk-KLKAIFKI.mjs +40 -0
- package/lib/chunk-LVSPEFU2.mjs +86 -0
- package/lib/{chunk-RWLXRTYP.mjs → chunk-MGPYPKIE.mjs} +2 -2
- package/lib/chunk-NGFK3EYW.mjs +28 -0
- package/lib/chunk-NQXUYO67.mjs +253 -0
- package/lib/chunk-NVEG3LEZ.mjs +143 -0
- package/lib/chunk-OBXLTXFJ.mjs +34 -0
- package/lib/chunk-OGXVGBRI.mjs +29 -0
- package/lib/chunk-OXV52GD5.mjs +62 -0
- package/lib/chunk-PXBMHE7O.mjs +35 -0
- package/lib/chunk-QD4T255Z.mjs +40 -0
- package/lib/chunk-QII2EKCS.mjs +26 -0
- package/lib/chunk-R5FJOR63.mjs +47 -0
- package/lib/chunk-RDGDLSPD.mjs +76 -0
- package/lib/chunk-RDN6HF5Z.mjs +79 -0
- package/lib/chunk-RJKTSUAX.mjs +123 -0
- package/lib/{chunk-XA3SNBPA.mjs → chunk-TBWXE7ST.mjs} +97 -38
- package/lib/chunk-UXCFNAR6.mjs +55 -0
- package/lib/{chunk-M3YIYRHT.mjs → chunk-UY5VUEA3.mjs} +1 -1
- package/lib/chunk-WSHVPGNM.mjs +44 -0
- package/lib/{chunk-66PAU5PS.mjs → chunk-X2B3X7D4.mjs} +10 -6
- package/lib/clean-github-actions-caches-cli.cjs +507 -0
- package/lib/clean-github-actions-caches-cli.mjs +74 -0
- package/lib/clean-github-actions-caches.cjs +246 -106
- package/lib/clean-github-actions-caches.d.cts +53 -1
- package/lib/clean-github-actions-caches.mjs +5 -130
- package/lib/cross-env/command.cjs +63 -0
- package/lib/cross-env/command.d.ts +8 -0
- package/lib/cross-env/command.js +45 -0
- package/lib/{ps/isWin.mjs → cross-env/command.mjs} +4 -5
- package/lib/cross-env/index.cjs +178 -0
- package/lib/cross-env/index.d.ts +8 -0
- package/lib/cross-env/index.js +102 -0
- package/lib/cross-env/index.mjs +101 -0
- package/lib/cross-env/variable.cjs +60 -0
- package/lib/cross-env/variable.d.ts +7 -0
- package/lib/cross-env/variable.js +59 -0
- package/lib/cross-env/variable.mjs +9 -0
- package/lib/del-gradle.cjs +8 -13
- package/lib/del-gradle.js +8 -8
- package/lib/del-gradle.mjs +1 -1
- package/lib/del-node-modules.cjs +185 -3
- package/lib/del-node-modules.js +25 -25
- package/lib/del-node-modules.mjs +6 -3
- package/lib/{del-ps.cjs → del-ps-cli.cjs} +38 -43
- package/lib/del-ps-cli.d.mts +1 -0
- package/lib/del-ps-cli.mjs +44 -0
- package/lib/del-yarn-caches.cjs +8 -13
- package/lib/del-yarn-caches.js +2 -2
- package/lib/del-yarn-caches.mjs +1 -1
- package/lib/downloader-cli.cjs +256 -0
- package/lib/downloader-cli.d.cts +2 -0
- package/lib/downloader-cli.mjs +90 -0
- package/lib/file/copy-cli.cjs +273 -0
- package/lib/file/copy-cli.d.mts +1 -0
- package/lib/file/copy-cli.mjs +59 -0
- package/lib/file/copy.cjs +56 -0
- package/lib/file/copy.d.mts +1 -0
- package/lib/file/copy.mjs +8 -0
- package/lib/file/move-cli.cjs +272 -0
- package/lib/file/move-cli.d.mts +1 -0
- package/lib/file/move-cli.mjs +59 -0
- package/lib/file/move.cjs +55 -0
- package/lib/file/move.d.mts +1 -0
- package/lib/file/move.mjs +8 -0
- package/lib/find-node-modules-cli.cjs +1 -1
- package/lib/find-node-modules-cli.js +1 -1
- package/lib/find-node-modules-cli.mjs +1 -1
- package/lib/find-node-modules.cjs +1 -1
- package/lib/find-node-modules.mjs +1 -1
- package/lib/free-chatgpt.cjs +27 -26
- package/lib/free-chatgpt.js +10 -10
- package/lib/free-chatgpt.mjs +2 -2
- package/lib/git/user-config.cjs +9 -14
- package/lib/git/user-config.mjs +2 -2
- package/lib/git-diff-cli.cjs +273 -66
- package/lib/git-diff-cli.mjs +5 -4
- package/lib/git-diff.cjs +273 -66
- package/lib/git-diff.d.ts +2 -1
- package/lib/git-diff.js +153 -39
- package/lib/git-diff.mjs +5 -4
- package/lib/git-fix.cjs +9 -14
- package/lib/git-fix.mjs +2 -2
- package/lib/git-purge.cjs +9 -14
- package/lib/git-purge.mjs +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +1 -1
- package/lib/kill-night-crows.cjs +7 -7
- package/lib/kill-night-crows.mjs +7 -7
- package/lib/node-cache-cleaner/npm.cjs +65 -0
- package/lib/node-cache-cleaner/npm.d.ts +2 -0
- package/lib/node-cache-cleaner/npm.js +41 -0
- package/lib/node-cache-cleaner/npm.mjs +10 -0
- package/lib/node-cache-cleaner/npx.cjs +89 -0
- package/lib/node-cache-cleaner/npx.d.ts +4 -0
- package/lib/node-cache-cleaner/npx.js +82 -0
- package/lib/{ps/index.d.mjs → node-cache-cleaner/npx.mjs} +6 -5
- package/lib/node-cache-cleaner/yarn.cjs +73 -0
- package/lib/node-cache-cleaner/yarn.d.ts +2 -0
- package/lib/node-cache-cleaner/yarn.js +62 -0
- package/lib/node-cache-cleaner/yarn.mjs +10 -0
- package/lib/node-cache-cleaner-cli.cjs +365 -0
- package/lib/node-cache-cleaner-cli.d.ts +2 -0
- package/lib/node-cache-cleaner-cli.js +57 -0
- package/lib/node-cache-cleaner-cli.mjs +60 -0
- package/lib/node-executor.cjs +272 -0
- package/lib/node-executor.d.cts +2 -0
- package/lib/node-executor.mjs +106 -0
- package/lib/node-package-packer/build-readme.cjs +150 -0
- package/lib/node-package-packer/build-readme.d.mts +10 -0
- package/lib/node-package-packer/build-readme.mjs +10 -0
- package/lib/node-package-packer/build-tarball.cjs +495 -0
- package/lib/node-package-packer/build-tarball.d.mts +33 -0
- package/lib/node-package-packer/build-tarball.mjs +175 -0
- package/lib/node-package-packer-cli.cjs +525 -0
- package/lib/node-package-packer-cli.d.mts +1 -0
- package/lib/node-package-packer-cli.mjs +34 -0
- package/lib/npm-run-series.cjs +28 -40
- package/lib/npm-run-series.mjs +21 -7
- package/lib/package-resolutions-updater-cli.cjs +255 -173
- package/lib/package-resolutions-updater-cli.mjs +19 -40
- package/lib/package-resolutions-updater.cjs +244 -141
- package/lib/package-resolutions-updater.d.mts +54 -1
- package/lib/package-resolutions-updater.mjs +8 -5
- package/lib/php-cs-fixer-staged.cjs +1 -1
- package/lib/php-cs-fixer-staged.mjs +1 -1
- package/lib/print-directory-tree.cjs +18 -20
- package/lib/print-directory-tree.mjs +11 -8
- package/lib/print-tarball-tree.cjs +262 -0
- package/lib/print-tarball-tree.d.mts +1 -0
- package/lib/print-tarball-tree.mjs +68 -0
- package/lib/ps/connected-domain.js +10 -10
- package/lib/ps/index.cjs +11 -11
- package/lib/ps/index.mjs +180 -174
- package/lib/ps/table-parser.d.ts +3 -4
- package/lib/ps/table-parser.js +15 -22
- package/lib/remove-module.cjs +19 -24
- package/lib/remove-module.mjs +2 -2
- package/lib/rm-node-module-cli.cjs +389 -0
- package/lib/rm-node-module-cli.d.cts +1 -0
- package/lib/rm-node-module-cli.mjs +92 -0
- package/lib/rm-node-modules.cjs +127 -0
- package/lib/rm-node-modules.d.cts +35 -0
- package/lib/{binary-collections-config.mjs → rm-node-modules.mjs} +3 -3
- package/lib/rmpath-cli.cjs +285 -0
- package/lib/rmpath-cli.d.mts +1 -0
- package/lib/rmpath-cli.mjs +23 -0
- package/lib/rmpath.cjs +6 -217
- package/lib/rmpath.mjs +5 -101
- package/lib/run-by-checksum/cache.cjs +69 -0
- package/lib/run-by-checksum/cache.d.ts +19 -0
- package/lib/run-by-checksum/cache.js +50 -0
- package/lib/run-by-checksum/cache.mjs +12 -0
- package/lib/run-by-checksum/hash.cjs +72 -0
- package/lib/run-by-checksum/hash.d.ts +14 -0
- package/lib/run-by-checksum/hash.js +85 -0
- package/lib/run-by-checksum/hash.mjs +10 -0
- package/lib/run-by-checksum/run.cjs +169 -0
- package/lib/run-by-checksum/run.d.ts +22 -0
- package/lib/run-by-checksum/run.js +93 -0
- package/lib/run-by-checksum/run.mjs +10 -0
- package/lib/run-by-checksum-cli.cjs +382 -0
- package/lib/run-by-checksum-cli.d.ts +2 -0
- package/lib/run-by-checksum-cli.js +43 -0
- package/lib/run-by-checksum-cli.mjs +56 -0
- package/lib/submodule-install.cjs +55 -47
- package/lib/submodule-install.mjs +48 -35
- package/lib/submodule-remove-cli.cjs +170 -4
- package/lib/submodule-remove-cli.js +5 -5
- package/lib/submodule-remove-cli.mjs +6 -4
- package/lib/utils/chatgpt.cjs +19 -13
- package/lib/utils/chatgpt.js +94 -94
- package/lib/utils/chatgpt.mjs +1 -1
- package/lib/utils/fetchResponse.cjs +24 -0
- package/lib/utils/fetchResponse.d.cts +25 -0
- package/lib/utils/fetchResponse.mjs +6 -0
- package/lib/utils/findEnvFiles.cjs +28 -46
- package/lib/utils/findEnvFiles.d.cts +19 -0
- package/lib/utils/findEnvFiles.mjs +3 -5
- package/lib/utils/findWorkspaceRoot.js +4 -4
- package/lib/utils/index.cjs +7 -12
- package/lib/utils/index.d.cts +2 -9
- package/lib/utils/index.mjs +1 -1
- package/lib/utils/isGithubTokenValid.js +7 -7
- package/lib/{ps/isWin.cjs → utils/isWindows.cjs} +12 -7
- package/lib/utils/isWindows.d.ts +5 -0
- package/lib/utils/isWindows.js +10 -0
- package/lib/utils/isWindows.mjs +10 -0
- package/lib/utils/runBash.cjs +53 -0
- package/lib/utils/runBash.d.cts +12 -0
- package/lib/utils/runBash.mjs +66 -0
- package/lib/yarn-per-branch-lock-installer.cjs +288 -0
- package/lib/yarn-per-branch-lock-installer.d.cts +2 -0
- package/lib/yarn-per-branch-lock-installer.mjs +122 -0
- package/lib/yarn-reinstall.cjs +8 -13
- package/lib/yarn-reinstall.mjs +1 -1
- package/package.json +91 -57
- package/readme.html +784 -0
- package/readme.md +107 -219
- package/releases/readme.md +6 -3
- package/test/README.md +2 -2
- package/test-project/workspaces/workspace-a/readme.md +20 -0
- package/test-project/workspaces/workspace-a/release/readme.md +42 -0
- package/test-project/workspaces/workspace-a/test/readme.md +12 -0
- package/test-project/workspaces/workspace-b/readme.md +94 -0
- package/test-project/workspaces/workspace-b/requirements.txt +1 -0
- package/test-project/workspaces/workspace-b/themes/hexo-theme-flowbite/readme.md +156 -0
- package/tmp/test-repo/README.md +2 -35
- package/tmp/test-repo-runChecksum/test-complex-glob/README.md +1 -0
- package/tmp/test-repo-runChecksum/test-mixed-args/README.md +1 -0
- package/lib/binary-collections-config.cjs +0 -15
- package/lib/chunk-2CBJCW7E.mjs +0 -81
- package/lib/chunk-4UHL4WVN.mjs +0 -136
- package/lib/chunk-6HHJRKFB.mjs +0 -59
- package/lib/chunk-6S4NXESK.mjs +0 -26
- package/lib/chunk-7XTEJHOE.mjs +0 -193
- package/lib/chunk-AJDD5DZM.mjs +0 -109
- package/lib/chunk-FCDQGYBF.mjs +0 -136
- package/lib/chunk-GEYA2USY.mjs +0 -207
- package/lib/chunk-GJTGHXRA.mjs +0 -356
- package/lib/chunk-ID2WBTE2.mjs +0 -80
- package/lib/chunk-JXFOHKDM.mjs +0 -239
- package/lib/chunk-NCXAP7AA.mjs +0 -31
- package/lib/chunk-PDSXF5HY.mjs +0 -187
- package/lib/chunk-TOIVAQF7.mjs +0 -136
- package/lib/chunk-V5SKYJUB.mjs +0 -136
- package/lib/chunk-WSRETQCA.mjs +0 -59
- package/lib/chunk-YYLIQQKF.mjs +0 -31
- package/lib/del-ps.js +0 -32
- package/lib/del-ps.mjs +0 -43
- package/lib/ps/index.d.cjs +0 -17
- package/lib/ps/index.d.ts +0 -2
- package/lib/ps/index.js +0 -254
- package/lib/ps/isWin.d.ts +0 -2
- package/lib/ps/isWin.js +0 -4
- package/lib/utils/findEnvFiles.d.ts +0 -8
- package/lib/utils/findEnvFiles.js +0 -121
- package/test/package.json +0 -20
- package/test-project/package.json +0 -16
- package/tmp/test-repo/package.json +0 -7
- package/tmp/typedoc/readme.md +0 -320
- /package/lib/{binary-collections-config.d.cts → binary-collections/config.d.cts} +0 -0
- /package/lib/{del-ps.d.ts → clean-github-actions-caches-cli.d.cts} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## Git Fix Utility
|
|
2
|
+
|
|
3
|
+
A comprehensive configuration fixer for cross-platform development. Non-interactive and argument-driven.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git-fix # Apply all default fixes
|
|
9
|
+
git-fix --lf-only # Force LF line endings only
|
|
10
|
+
git-fix --permissions # Ignore file permissions only
|
|
11
|
+
git-fix --normalize # Normalize existing files only
|
|
12
|
+
git-fix --user # Configure Git user from env vars
|
|
13
|
+
git-fix --user NAME EMAIL # Configure Git user with specific values
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Options can be combined: `git-fix --lf-only --permissions`
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- Forces LF line endings (`core.autocrlf = false`)
|
|
21
|
+
- Ignores file permission changes (`core.filemode = false`)
|
|
22
|
+
- Sets pull strategy to prevent auto-rebase
|
|
23
|
+
- Creates/updates `.gitattributes`
|
|
24
|
+
- Normalizes existing line endings
|
|
25
|
+
|
|
26
|
+
### User Configuration
|
|
27
|
+
|
|
28
|
+
- Uses environment variables: `GITHUB_USER`, `GITHUB_EMAIL` (if no args provided)
|
|
29
|
+
- Use `--user NAME EMAIL` to specify credentials directly
|
|
30
|
+
- Precedence: CLI arguments > environment variables > skip
|
|
31
|
+
|
|
32
|
+
### Source
|
|
33
|
+
|
|
34
|
+
See [`src/git-fix.cjs`](../src/git-fix.cjs) & submodules in [`src/git/`](../src/git/)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Git Repository Purge
|
|
2
|
+
|
|
3
|
+
Cleans and optimizes git repositories by pruning reflogs aggressively.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git-purge
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Description
|
|
12
|
+
|
|
13
|
+
Aggressively prunes the git reflog in all `.git` directories, helping reduce repository size and improve performance.
|
|
14
|
+
|
|
15
|
+
### Source
|
|
16
|
+
|
|
17
|
+
See [`src/git-purge.cjs`](../src/git-purge.cjs)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Git Repository Size Reducer
|
|
2
|
+
|
|
3
|
+
Reduces repository size by cleaning up history.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git-reduce-size
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Description
|
|
12
|
+
|
|
13
|
+
Aggressively prunes git reflog and runs garbage collection to reduce the repository size on disk.
|
|
14
|
+
|
|
15
|
+
### Source
|
|
16
|
+
|
|
17
|
+
See [`bin/git-reduce-size`](../bin/git-reduce-size)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
## Git Undo Commands
|
|
2
|
+
|
|
3
|
+
Utilities to undo recent git operations while preserving your changes.
|
|
4
|
+
|
|
5
|
+
### Available Commands
|
|
6
|
+
|
|
7
|
+
| Command | Aliases | Description |
|
|
8
|
+
|---------|---------|-------------|
|
|
9
|
+
| `undo-commit` | `undo-last-commit`, `git-undo-commit` | Soft-resets the last commit (`git reset --soft HEAD~1`) |
|
|
10
|
+
| `undo-staged` | `git-undo-staged` | Unstages all staged changes (`git reset HEAD .`) |
|
|
11
|
+
|
|
12
|
+
### Usage
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
undo-commit # Undo the last commit, keep changes staged
|
|
16
|
+
undo-staged # Unstage all staged changes
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Source
|
|
20
|
+
|
|
21
|
+
See [`src/git/undo-commit.cjs`](../src/git/undo-commit.cjs), [`src/git/undo-staged.cjs`](../src/git/undo-staged.cjs)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Night Crows Process Killer
|
|
2
|
+
|
|
3
|
+
Kills the Night Crows game launcher process tree when the shipping process hangs.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
kill-night-crows
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Option | Description |
|
|
14
|
+
|--------|-------------|
|
|
15
|
+
| `-h, --help` | Show help message |
|
|
16
|
+
|
|
17
|
+
### Description
|
|
18
|
+
|
|
19
|
+
- Launches `kill-night-crows.ps1` PowerShell script
|
|
20
|
+
- Watches for Night Crows processes and kills the launcher tree
|
|
21
|
+
- **Windows only**
|
|
22
|
+
- Available as a standalone utility for game development environments
|
|
23
|
+
|
|
24
|
+
### Source
|
|
25
|
+
|
|
26
|
+
See [`src/kill-night-crows.mjs`](../src/kill-night-crows.mjs) & [`bin/kill-night-crows.ps1`](../bin/kill-night-crows.ps1)
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
## Node Cache Cleaner
|
|
2
|
+
|
|
3
|
+
Cleans NPM, Yarn, and NPX caches in parallel.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
node-cache-cleaner [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Option | Description |
|
|
14
|
+
|--------|-------------|
|
|
15
|
+
| `-h, --help` | Show help message |
|
|
16
|
+
|
|
17
|
+
### Description
|
|
18
|
+
|
|
19
|
+
- Runs `npm cache clean --force` to clean the NPM cache
|
|
20
|
+
- Runs `yarn cache clean` (or `yarn cache clean --all` for Yarn Berry) to clean the Yarn cache
|
|
21
|
+
- Removes `_npx`, `_cacache`, and `.cache/npx` directories to clean the NPX cache
|
|
22
|
+
- All cache cleaning operations run in parallel via `Promise.allSettled`
|
|
23
|
+
- Exits with code 0 on success, or 1 if any cache clean operation fails
|
|
24
|
+
|
|
25
|
+
### Source
|
|
26
|
+
|
|
27
|
+
See [`src/node-cache-cleaner-cli.ts`](../src/node-cache-cleaner-cli.ts) and [`src/node-cache-cleaner/`](../src/node-cache-cleaner/)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Yarn Cache Cleaner (Python)
|
|
32
|
+
|
|
33
|
+
Python-based utility to clean Yarn caches.
|
|
34
|
+
|
|
35
|
+
### Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
yarn-clean
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Description
|
|
42
|
+
|
|
43
|
+
Runs `yarn-clean.py` which locates and cleans Yarn cache directories. Available as a shell wrapper in both bash and batch variants.
|
|
44
|
+
|
|
45
|
+
### Source
|
|
46
|
+
|
|
47
|
+
See [`bin/yarn-clean`](../bin/yarn-clean) & [`bin/yarn-clean.py`](../bin/yarn-clean.py)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## yc / ycw
|
|
52
|
+
|
|
53
|
+
Shell scripts to clean `node_modules` directories in parallel.
|
|
54
|
+
|
|
55
|
+
### Usage
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
yc [options]
|
|
59
|
+
ycw [options]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Options
|
|
63
|
+
|
|
64
|
+
| Option | Description |
|
|
65
|
+
|--------|-------------|
|
|
66
|
+
| `-h, --help` | Show help message |
|
|
67
|
+
| `-c, --concurrent <num>` | Maximum parallel jobs (default: 4) |
|
|
68
|
+
|
|
69
|
+
### Description
|
|
70
|
+
|
|
71
|
+
- **`yc`** — Cleans `node_modules` via letter-based parallel deletion of top-level entries (a-z) inside `node_modules/`
|
|
72
|
+
- **`ycw`** — Yarn workspaces–aware variant. Detects monorepo root, expands workspace globs, and cleans `node_modules` across root + all workspace packages in parallel
|
|
73
|
+
|
|
74
|
+
### Source
|
|
75
|
+
|
|
76
|
+
See [`bin/yc`](../bin/yc) & [`bin/ycw`](../bin/ycw)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Node Modules Cleaner
|
|
81
|
+
|
|
82
|
+
Recursively finds and removes `node_modules` directories.
|
|
83
|
+
|
|
84
|
+
### Aliases
|
|
85
|
+
|
|
86
|
+
- `del-nodemodules` (default)
|
|
87
|
+
- `del-node-modules`
|
|
88
|
+
|
|
89
|
+
### Usage
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
del-nodemodules [options]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Options
|
|
96
|
+
|
|
97
|
+
| Option | Description |
|
|
98
|
+
|--------|-------------|
|
|
99
|
+
| `--force`, `-f` | Actually delete (default is dry-run mode) |
|
|
100
|
+
| `-c, --concurrent N` | Set concurrent removals (default: 2, or CPU count) |
|
|
101
|
+
| `-h, --help` | Show help message |
|
|
102
|
+
|
|
103
|
+
### Description
|
|
104
|
+
|
|
105
|
+
- Searches for all `node_modules` directories recursively
|
|
106
|
+
- Also removes `package-lock.json`, `yarn.lock`, and `.yarn/cache` directories
|
|
107
|
+
- By default runs in dry-run mode (shows what would be deleted)
|
|
108
|
+
- Pass `--force` to actually perform deletion
|
|
109
|
+
|
|
110
|
+
### Source
|
|
111
|
+
|
|
112
|
+
See [`src/del-node-modules.js`](../src/del-node-modules.js)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Yarn Cache Cleaner
|
|
117
|
+
|
|
118
|
+
Deletes Yarn cache directories and cached `.gz` files.
|
|
119
|
+
|
|
120
|
+
### Aliases
|
|
121
|
+
|
|
122
|
+
- `del-yarncaches` (default)
|
|
123
|
+
- `del-yarn-caches`
|
|
124
|
+
|
|
125
|
+
### Usage
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
del-yarncaches
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Description
|
|
132
|
+
|
|
133
|
+
Finds and deletes all `.yarn/cache*` directories and `.yarn/*.gz` files under the current working directory, excluding `.git` and `vendor` directories.
|
|
134
|
+
|
|
135
|
+
### Source
|
|
136
|
+
|
|
137
|
+
See [`src/del-yarn-caches.js`](../src/del-yarn-caches.js)
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Remove Node Modules (Fast)
|
|
142
|
+
|
|
143
|
+
Alternative tool for removing `node_modules` — faster for very large projects. Removes subfolders by first-letter in parallel.
|
|
144
|
+
|
|
145
|
+
### Aliases
|
|
146
|
+
|
|
147
|
+
- `rm-node-modules` (default)
|
|
148
|
+
- `rm-node-module`
|
|
149
|
+
- `remove-node-modules`
|
|
150
|
+
- `remove-node-module`
|
|
151
|
+
|
|
152
|
+
### Usage
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
rm-node-modules [options]
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Options
|
|
159
|
+
|
|
160
|
+
| Option | Description |
|
|
161
|
+
|--------|-------------|
|
|
162
|
+
| `--force` | Actually delete (default is dry-run mode) |
|
|
163
|
+
| `-h, --help` | Show help message |
|
|
164
|
+
|
|
165
|
+
### Description
|
|
166
|
+
|
|
167
|
+
- Removes `node_modules` subfolders by first-letter in parallel (a-z, A-Z)
|
|
168
|
+
- Writes and executes a temporary shell script (auto-removed after completion)
|
|
169
|
+
- On Windows requires a Unix-compatible shell in `PATH` (e.g., Git Bash or WSL)
|
|
170
|
+
|
|
171
|
+
### Examples
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
npx --legacy-peer-deps -y binary-collections rm-node-modules
|
|
175
|
+
npx --legacy-peer-deps -y binary-collections rm-node-modules --force
|
|
176
|
+
yarn run rm-node-modules
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Source
|
|
180
|
+
|
|
181
|
+
See [`src/rm-node-module-cli.cjs`](../src/rm-node-module-cli.cjs) & [`src/rm-node-modules.cjs`](../src/rm-node-modules.cjs)
|
|
182
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
## Node Executor
|
|
2
|
+
|
|
3
|
+
Execute scripts in various languages by dispatching to the appropriate runtime based on file extension.
|
|
4
|
+
|
|
5
|
+
### Aliases
|
|
6
|
+
|
|
7
|
+
This command is available under several aliases (all invoke the same CLI):
|
|
8
|
+
|
|
9
|
+
- `node-exec` (default)
|
|
10
|
+
- `exec-node`
|
|
11
|
+
- `execute-node`
|
|
12
|
+
- `node-executor`
|
|
13
|
+
|
|
14
|
+
### Usage
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
node-exec [options] <file>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Options
|
|
21
|
+
|
|
22
|
+
| Flag | Description |
|
|
23
|
+
| :--- | :--- |
|
|
24
|
+
| `-h`, `--help` | Show help |
|
|
25
|
+
| `--exit-code=<code>` | Exit code when file not found or invalid (default: `1`) |
|
|
26
|
+
|
|
27
|
+
### Supported Extensions
|
|
28
|
+
|
|
29
|
+
| Extension | Runtime |
|
|
30
|
+
| :-------- | :------ |
|
|
31
|
+
| `.php` | `php` |
|
|
32
|
+
| `.js` | `node` |
|
|
33
|
+
| `.mjs` | `node` |
|
|
34
|
+
| `.cjs` | `node` |
|
|
35
|
+
| `.py` | `python` |
|
|
36
|
+
| `.rb` | `ruby` |
|
|
37
|
+
| `.sh` | `bash` |
|
|
38
|
+
| `.bat` | `cmd` |
|
|
39
|
+
|
|
40
|
+
### Example
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
node-exec test.php
|
|
44
|
+
node-exec script.js
|
|
45
|
+
node-exec --exit-code=0 missing.php
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Source
|
|
49
|
+
|
|
50
|
+
See [`src/node-executor.cjs`](../src/node-executor.cjs)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Node Package Packer
|
|
2
|
+
|
|
3
|
+
Automated tarball (tgz) creator for release folder. It packs the current package, generates release metadata, and writes a release README alongside the produced tarballs.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
tarball-packer [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### One-off Call
|
|
12
|
+
|
|
13
|
+
You can run the command without installing the library:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx --legacy-peer-deps -y binary-collections@https://raw.githubusercontent.com/dimaslanjaka/bin/master/releases/bin.tgz node-package-packer [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Aliases
|
|
20
|
+
|
|
21
|
+
This command is available under the following aliases:
|
|
22
|
+
|
|
23
|
+
- `tarball-packer` (default)
|
|
24
|
+
- `node-package-packer`
|
|
25
|
+
- `pack-node-package`
|
|
26
|
+
- `pack-tarball`
|
|
27
|
+
- `build-tarball`
|
|
28
|
+
- `build-package`
|
|
29
|
+
- `build-package-tarball`
|
|
30
|
+
|
|
31
|
+
### Options
|
|
32
|
+
|
|
33
|
+
| Flag | Description |
|
|
34
|
+
| :--- | :--- |
|
|
35
|
+
| `-h`, `--help` | Show help message |
|
|
36
|
+
| `-y`, `--yarn` | Force `yarn pack` instead of `npm pack` |
|
|
37
|
+
| `-d`, `--verbose` | Enable verbose output |
|
|
38
|
+
| `--fn`, `--filename` | Set output filename variant |
|
|
39
|
+
|
|
40
|
+
### Description
|
|
41
|
+
|
|
42
|
+
- Runs `npm pack` or `yarn pack` to create a tarball in the project root.
|
|
43
|
+
- Copies the tarball into the release folder and writes `metadata.json` with integrity hashes.
|
|
44
|
+
- Generates a release README that lists available tarballs and raw GitHub URLs.
|
|
45
|
+
|
|
46
|
+
### Source
|
|
47
|
+
|
|
48
|
+
See [`src/node-package-packer-cli.mjs`](../src/node-package-packer-cli.mjs) (CLI entry point) and [`src/node-package-packer/build-tarball.mjs`](../src/node-package-packer/build-tarball.mjs) (pack workflow).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## NPM Script Runner
|
|
2
|
+
|
|
3
|
+
Execute multiple npm scripts in series using pattern matching.
|
|
4
|
+
|
|
5
|
+
### Aliases
|
|
6
|
+
|
|
7
|
+
This command is available under several aliases (all invoke the same CLI):
|
|
8
|
+
|
|
9
|
+
- `nrs` (default)
|
|
10
|
+
- `run-s`
|
|
11
|
+
- `run-series`
|
|
12
|
+
- `npm-run-series`
|
|
13
|
+
|
|
14
|
+
### Usage
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nrs <glob-pattern-of-script-names> [options]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Options
|
|
21
|
+
|
|
22
|
+
| Flag | Description |
|
|
23
|
+
| :--- | :--- |
|
|
24
|
+
| `--yarn` | Use `yarn run` instead of `npm run` |
|
|
25
|
+
| `--verbose`, `-v` | Enable verbose logging |
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
Define a script to run all tasks matching a pattern:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build:app": "echo 'building app'",
|
|
35
|
+
"build:lib": "echo 'building lib'",
|
|
36
|
+
"build:all": "nrs --yarn --verbose \"build:**\""
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Source
|
|
42
|
+
|
|
43
|
+
See [`src/npm-run-series.cjs`](../src/npm-run-series.cjs)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## Package Resolutions Manager
|
|
2
|
+
|
|
3
|
+
Updates GitHub raw tarball commit SHAs in `package.json` resolutions to the latest commit on each branch.
|
|
4
|
+
|
|
5
|
+
### Aliases
|
|
6
|
+
|
|
7
|
+
- `pkg-resolutions-updater` (default)
|
|
8
|
+
- `pkg-res-updater`
|
|
9
|
+
|
|
10
|
+
### Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pkg-resolutions-updater
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Description
|
|
17
|
+
|
|
18
|
+
Scans `package.json` resolutions for GitHub tarball URLs (raw.githubusercontent.com) and updates the commit SHA in each URL to the latest commit on the referenced branch.
|
|
19
|
+
|
|
20
|
+
### Source
|
|
21
|
+
|
|
22
|
+
See [`src/package-resolutions-updater.mjs`](../src/package-resolutions-updater.mjs) & [`src/package-resolutions-updater-cli.mjs`](../src/package-resolutions-updater-cli.mjs)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## PHP CS Fixer Staged
|
|
2
|
+
|
|
3
|
+
Runs `php-cs-fixer` on staged PHP files only.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
php-cs-fixer-staged
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Description
|
|
12
|
+
|
|
13
|
+
- Gets the list of staged PHP files using `git diff --name-only --cached --diff-filter=ACM`
|
|
14
|
+
- Automatically locates `php-cs-fixer` in PATH or common locations (`vendor/bin/`, `bin/`, `tools/`)
|
|
15
|
+
- Runs `php-cs-fixer fix` on only the staged PHP files
|
|
16
|
+
|
|
17
|
+
### Source
|
|
18
|
+
|
|
19
|
+
See [`src/php-cs-fixer-staged.cjs`](../src/php-cs-fixer-staged.cjs)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
## Directory Tree Printer
|
|
2
|
+
|
|
3
|
+
Generates a directory tree structure with file SHA-256 hashes.
|
|
4
|
+
|
|
5
|
+
### Aliases
|
|
6
|
+
|
|
7
|
+
- `print-tree` (default)
|
|
8
|
+
- `dir-tree`
|
|
9
|
+
- `print-directory-tree`
|
|
10
|
+
|
|
11
|
+
### Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
print-tree [options]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Options
|
|
18
|
+
|
|
19
|
+
| Option | Description |
|
|
20
|
+
|--------|-------------|
|
|
21
|
+
| `-o, --output <file>` | Output file (default: `tmp/directory-structure.txt`) |
|
|
22
|
+
| `--ext <exts>` | Comma-separated list of file extensions to include |
|
|
23
|
+
| `--pattern <glob>` | Glob pattern to include (repeatable) |
|
|
24
|
+
| `--exclude <dirs>` | Directories to exclude |
|
|
25
|
+
| `--override-exclude, -we` | Override default excludes |
|
|
26
|
+
| `--git-add` | Stage output file to git |
|
|
27
|
+
| `-h, --help` | Show help message |
|
|
28
|
+
|
|
29
|
+
### Description
|
|
30
|
+
|
|
31
|
+
Scans the current directory recursively, generates a structured tree with SHA-256 hashes for each file, and writes the result to an output file.
|
|
32
|
+
|
|
33
|
+
### Source
|
|
34
|
+
|
|
35
|
+
See [`src/print-directory-tree.cjs`](../src/print-directory-tree.cjs)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Tarball Tree Printer
|
|
2
|
+
|
|
3
|
+
Prints the directory tree structure of a `.tgz` (gzipped tarball) archive to the console.
|
|
4
|
+
|
|
5
|
+
# Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
print-tarball-tree [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Aliases
|
|
12
|
+
|
|
13
|
+
- `print-tarball-tree` (default)
|
|
14
|
+
- `tarball-tree`
|
|
15
|
+
|
|
16
|
+
### Options
|
|
17
|
+
|
|
18
|
+
| Option | Description |
|
|
19
|
+
|--------|-------------|
|
|
20
|
+
| `-f, --file <path>` | Path to the tarball file |
|
|
21
|
+
| `-h, --help` | Show help message |
|
|
22
|
+
|
|
23
|
+
### Description
|
|
24
|
+
|
|
25
|
+
Reads a `.tgz` file (gzipped tar archive), extracts the entry names, and prints them as a hierarchical directory tree using Unicode box-drawing characters (`├──`, `└──`, `│`).
|
|
26
|
+
|
|
27
|
+
The file path can be given as an absolute path or a relative path (resolved against the current working directory).
|
|
28
|
+
|
|
29
|
+
If no `--file` argument is provided, the command exits with an error.
|
|
30
|
+
|
|
31
|
+
If the specified file does not exist, the command exits with an error.
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
Print the tree of a tarball in the current directory:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
print-tarball-tree --file package.tgz
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Print the tree using an absolute path:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
print-tarball-tree -f /path/to/package.tgz
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Using the alias:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
tarball-tree --file build/package.tgz
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# Source
|
|
54
|
+
|
|
55
|
+
See [`src/print-tarball-tree.mjs`](../src/print-tarball-tree.mjs)
|
package/docs-src/py.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## Python Script Runner
|
|
2
|
+
|
|
3
|
+
Runs Python scripts using a managed virtual environment.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
py <script.py> [args...]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Description
|
|
12
|
+
|
|
13
|
+
- Automatically manages a Python virtual environment
|
|
14
|
+
- Installs dependencies as needed
|
|
15
|
+
- Runs Python scripts in a consistent, isolated environment
|
|
16
|
+
|
|
17
|
+
### Source
|
|
18
|
+
|
|
19
|
+
See [`bin/py`](../bin/py)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## Remove Module
|
|
2
|
+
|
|
3
|
+
Removes a module from one or more dependency directories (Node.js, PHP Composer, Python venv).
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
remove-module <moduleName> [<moduleName> ...]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Option | Description |
|
|
14
|
+
|--------|-------------|
|
|
15
|
+
| `--node` | Remove from `node_modules` (default if no flag given) |
|
|
16
|
+
| `--composer` | Remove from `vendor/composer` |
|
|
17
|
+
| `--venv` | Remove from `venv`/`.venv` site-packages |
|
|
18
|
+
| `-h, --help` | Show help message |
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
remove-module lodash
|
|
24
|
+
remove-module lodash express --node
|
|
25
|
+
remove-module phpunit --composer
|
|
26
|
+
remove-module requests --venv
|
|
27
|
+
remove-module lodash phpunit --node --composer
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Source
|
|
31
|
+
|
|
32
|
+
See [`src/remove-module.mjs`](../src/remove-module.mjs)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
## Fast File/Folder Deleters
|
|
2
|
+
|
|
3
|
+
Shell-based utilities for finding and removing files/directories by name.
|
|
4
|
+
|
|
5
|
+
### Commands
|
|
6
|
+
|
|
7
|
+
| Command | Description |
|
|
8
|
+
|---------|-------------|
|
|
9
|
+
| `rmfind` | Find and delete files/directories by name using `find` |
|
|
10
|
+
| `rmx` | Fast parallel alphabet-based folder deleter |
|
|
11
|
+
|
|
12
|
+
### Usage
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
rmfind <name> # Find and delete items by name
|
|
16
|
+
rmx <path> # Fast parallel deletion of folder contents
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Source
|
|
20
|
+
|
|
21
|
+
See [`bin/rmfind`](../bin/rmfind), [`bin/rmx`](../bin/rmx) & [`bin/rmx.cmd`](../bin/rmx.cmd)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Remove Path (rmpath)
|
|
2
|
+
|
|
3
|
+
Fast huge folder deleter using a parallel alphabet-based deletion strategy. Deletes files or folders quickly by breaking down deletions alphabetically, falling back to standard `fs.rmSync` for the top-level target.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
rmpath <file-or-folder-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Aliases
|
|
12
|
+
|
|
13
|
+
This command is available under the following alias:
|
|
14
|
+
|
|
15
|
+
- `rmpath` (default)
|
|
16
|
+
|
|
17
|
+
### Behavior
|
|
18
|
+
|
|
19
|
+
- **Files**: The specified file is deleted directly.
|
|
20
|
+
- **Folders**: Subentries starting with each letter (a–z, A–Z) are resolved and deleted in parallel patterns. Vowel combinations are also covered for thorough matching.
|
|
21
|
+
- **Fallback**: After alphabet-based deletion, `fs.rmSync` is called on the original target path to clean up any remaining entries.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Delete a single file
|
|
27
|
+
rmpath large-file.tmp
|
|
28
|
+
|
|
29
|
+
# Delete a large directory (e.g., node_modules)
|
|
30
|
+
rmpath ./node_modules
|
|
31
|
+
|
|
32
|
+
# Delete a directory using an absolute path
|
|
33
|
+
rmpath C:\temp\huge-folder
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Source
|
|
37
|
+
|
|
38
|
+
See [`src/rmpath-cli.mjs`](../src/rmpath-cli.mjs) (CLI entry point) and [`src/rmpath.mjs`](../src/rmpath.mjs) (core logic).
|