binary-collections 2.0.12 → 2.0.14
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 +307 -162
- package/binaries/clean-nodemodule.cjs +307 -162
- package/binaries/clean-nodemodules.cjs +307 -162
- package/binaries/composer.cjs +323 -0
- package/binaries/composer.cmd +2 -0
- package/binaries/composer.phar +0 -0
- package/binaries/dev.cjs +307 -162
- package/binaries/empty.cjs +307 -162
- package/binaries/git-reduce-size.cjs +307 -162
- package/binaries/javakill.cjs +307 -162
- package/binaries/kill-process.cjs +307 -162
- package/binaries/nodekill.cjs +307 -162
- package/binaries/prod.cjs +307 -162
- package/binaries/py.cjs +307 -162
- package/binaries/rmfind.cjs +307 -162
- package/binaries/rmx.cjs +307 -162
- package/binaries/submodule-token.cjs +307 -162
- package/binaries/test-cjs.cjs +307 -162
- package/binaries/test-esm.cjs +307 -162
- package/binaries/yarn-clean.cjs +307 -162
- package/binaries/yc +22 -1
- package/binaries/yc.cjs +307 -162
- package/binaries/ycw +256 -0
- package/binaries/ycw.cjs +323 -0
- package/docs-src/binary-collections.md +34 -0
- package/docs-src/changelog.md +26 -0
- package/docs-src/clean-github-actions-caches.md +115 -0
- package/docs-src/copy-move-file.md +56 -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/free-chatgpt.md +26 -0
- package/docs-src/generate-test-ci.md +56 -0
- package/docs-src/get-latest-workflow-status.md +100 -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/opencode-cli.md +127 -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/upload-backend.md +29 -0
- package/docs-src/vscode-cli.md +84 -0
- package/docs-src/workflow-badge.md +120 -0
- package/docs-src/yarn-install.md +31 -0
- package/docs-src/yarn-reinstall.md +27 -0
- package/lib/binary-collections/config.cjs +15 -3
- package/lib/binary-collections/config.d.cts +10 -0
- package/lib/binary-collections/config.mjs +2 -2
- package/lib/binary-collections/findScript.cjs +75 -28
- package/lib/binary-collections/findScript.mjs +2 -2
- package/lib/binary-collections/listScript.cjs +75 -28
- package/lib/binary-collections/listScript.mjs +2 -2
- package/lib/binary-collections.cjs +85 -43
- package/lib/binary-collections.mjs +8 -8
- package/lib/changelog.cjs +7 -12
- package/lib/changelog.mjs +2 -2
- package/lib/chunk-2SJKVOTN.mjs +146 -0
- package/lib/{chunk-SPTECFE5.mjs → chunk-3F6EIHYG.mjs} +87 -21
- package/lib/chunk-546KAIYT.mjs +113 -0
- package/lib/chunk-56BVU63B.mjs +86 -0
- package/lib/chunk-5WAOOOGZ.mjs +77 -0
- package/lib/{chunk-V2IBPCEV.mjs → chunk-6C7KTYGZ.mjs} +3 -1
- package/lib/{chunk-5RTXZVCW.mjs → chunk-6RK5UCTP.mjs} +5 -10
- package/lib/chunk-72XTQ3CK.mjs +45 -0
- package/lib/chunk-7N52Z4IJ.mjs +39 -0
- package/lib/chunk-7Q6YEUQF.mjs +246 -0
- package/lib/{chunk-ZOWVMII3.mjs → chunk-AJ3OIYYP.mjs} +75 -28
- package/lib/chunk-AQZ7LMFS.mjs +100 -0
- package/lib/chunk-BDCMTOZI.mjs +246 -0
- package/lib/chunk-BEUM4LH4.mjs +184 -0
- package/lib/{chunk-66KDU4TX.mjs → chunk-BO4TZS4Q.mjs} +39 -61
- package/lib/chunk-CM3IC5YC.mjs +226 -0
- package/lib/{chunk-6PU7BAHB.mjs → chunk-D42YBRZW.mjs} +1 -1
- package/lib/chunk-FR3DMHJC.mjs +146 -0
- package/lib/chunk-I3O5ZRYU.mjs +77 -0
- package/lib/chunk-J4M5EL5P.mjs +108 -0
- package/lib/chunk-JK3MG2KF.mjs +236 -0
- package/lib/chunk-JMUFQSPE.mjs +184 -0
- package/lib/chunk-JVMLKHD2.mjs +62 -0
- package/lib/chunk-KAT2JNLZ.mjs +146 -0
- package/lib/chunk-KLKAIFKI.mjs +40 -0
- package/lib/{chunk-FB2WKVJD.mjs → chunk-KRCPFWIF.mjs} +72 -37
- package/lib/chunk-LACQTD5V.mjs +225 -0
- package/lib/chunk-LVSPEFU2.mjs +86 -0
- package/lib/chunk-MCCMMZSM.mjs +60 -0
- package/lib/{chunk-2LSRSEXF.mjs → chunk-MGPYPKIE.mjs} +2 -2
- package/lib/chunk-OA2RKEY3.mjs +162 -0
- package/lib/{chunk-C6D2TTYU.mjs → chunk-OBXLTXFJ.mjs} +4 -2
- package/lib/{chunk-G5UUEWUO.mjs → chunk-PAZH45HS.mjs} +8 -2
- package/lib/chunk-QD4T255Z.mjs +40 -0
- package/lib/{chunk-XPJGCDOD.mjs → chunk-QII2EKCS.mjs} +14 -2
- package/lib/chunk-QZMGBDSA.mjs +32 -0
- package/lib/chunk-RDGDLSPD.mjs +76 -0
- package/lib/chunk-RJKTSUAX.mjs +123 -0
- package/lib/chunk-RKPIBGKE.mjs +61 -0
- package/lib/chunk-SARIXFHP.mjs +44 -0
- package/lib/chunk-SJYP66BO.mjs +62 -0
- package/lib/chunk-SWUAEY4H.mjs +44 -0
- package/lib/chunk-TP3O2JGW.mjs +88 -0
- package/lib/chunk-UAIF5VIA.mjs +89 -0
- package/lib/chunk-UDZBVKXH.mjs +94 -0
- package/lib/chunk-UEOWRYAN.mjs +32 -0
- package/lib/chunk-UHPFLJXH.mjs +227 -0
- package/lib/{chunk-M3YIYRHT.mjs → chunk-UY5VUEA3.mjs} +1 -1
- package/lib/chunk-UYNBNLV5.mjs +113 -0
- package/lib/chunk-WOC4FZ6F.mjs +164 -0
- package/lib/chunk-WSHVPGNM.mjs +44 -0
- package/lib/chunk-X7UVQ6ZC.mjs +183 -0
- package/lib/{chunk-NCZPTKDV.mjs → chunk-XI67TI46.mjs} +1 -1
- package/lib/chunk-XW5NZAKI.mjs +82 -0
- package/lib/chunk-YLV4QATP.mjs +86 -0
- package/lib/chunk-YWSLMAQ7.mjs +65 -0
- package/lib/chunk-ZB4IQ6VJ.mjs +46 -0
- package/lib/cross-env/command.cjs +2 -2
- package/lib/cross-env/command.js +2 -2
- package/lib/cross-env/command.mjs +2 -2
- package/lib/cross-env/index.cjs +2 -2
- package/lib/cross-env/index.mjs +5 -5
- package/lib/cross-env/variable.mjs +2 -2
- package/lib/del-gradle.cjs +7 -12
- package/lib/del-gradle.mjs +23 -17
- package/lib/del-node-modules.cjs +186 -4
- package/lib/del-node-modules.mjs +151 -142
- package/lib/{del-ps.cjs → del-ps-cli.cjs} +36 -41
- package/lib/del-ps-cli.mjs +44 -0
- package/lib/del-yarn-caches.cjs +6 -11
- package/lib/del-yarn-caches.mjs +1 -1
- package/lib/downloader-cli.cjs +256 -0
- package/lib/downloader-cli.mjs +90 -0
- package/lib/file/copy-cli.cjs +183 -2
- package/lib/file/copy-cli.mjs +6 -2
- package/lib/file/move-cli.cjs +183 -2
- package/lib/file/move-cli.mjs +6 -2
- package/lib/find-node-modules-cli.cjs +2 -2
- package/lib/find-node-modules-cli.mjs +11 -5
- package/lib/find-node-modules.cjs +1 -1
- package/lib/find-node-modules.mjs +1 -1
- package/lib/free-chatgpt.cjs +6 -11
- package/lib/free-chatgpt.mjs +1 -1
- package/lib/{git-diff-cli.cjs → git/git-diff-cli.cjs} +109 -36
- package/lib/{git-diff-cli.mjs → git/git-diff-cli.mjs} +7 -7
- package/lib/{git-diff.cjs → git/git-diff.cjs} +107 -34
- package/lib/{git-diff.js → git/git-diff.js} +88 -31
- package/lib/{git-diff.mjs → git/git-diff.mjs} +6 -6
- package/lib/{git-fix.cjs → git/git-fix.cjs} +140 -14
- package/lib/git/git-fix.d.cts +2 -0
- package/lib/{git-fix.mjs → git/git-fix.mjs} +19 -14
- package/lib/{git-purge.cjs → git/git-purge.cjs} +8 -13
- package/lib/{git-purge.mjs → git/git-purge.mjs} +5 -5
- package/lib/git/user-config.cjs +137 -12
- package/lib/git/user-config.mjs +4 -2
- package/lib/{clean-github-actions-caches-cli.cjs → github-workflows/clean-github-actions-caches-cli.cjs} +292 -222
- package/lib/{clean-github-actions-caches-cli.mjs → github-workflows/clean-github-actions-caches-cli.mjs} +30 -11
- package/lib/github-workflows/clean-github-actions-caches.cjs +473 -0
- package/lib/github-workflows/clean-github-actions-caches.d.cts +53 -0
- package/lib/{clean-github-actions-caches.mjs → github-workflows/clean-github-actions-caches.mjs} +5 -3
- package/lib/github-workflows/generate-test-ci-step-cli.cjs +240 -0
- package/lib/github-workflows/generate-test-ci-step-cli.d.mts +2 -0
- package/lib/github-workflows/generate-test-ci-step-cli.mjs +132 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.cjs +541 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.d.mts +2 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.mjs +61 -0
- package/lib/github-workflows/get-latest-workflow-status.cjs +56 -0
- package/lib/github-workflows/get-latest-workflow-status.d.mts +1 -0
- package/lib/{ps/isWin.mjs → github-workflows/get-latest-workflow-status.mjs} +3 -5
- package/lib/github-workflows/utils.cjs +271 -0
- package/lib/github-workflows/utils.d.cts +76 -0
- package/lib/github-workflows/utils.mjs +8 -0
- package/lib/github-workflows/workflow-badge-cli.cjs +722 -0
- package/lib/github-workflows/workflow-badge-cli.d.mts +2 -0
- package/lib/github-workflows/workflow-badge-cli.mjs +98 -0
- package/lib/github-workflows/workflow-badge-generator.cjs +200 -0
- package/lib/github-workflows/workflow-badge-generator.d.mts +14 -0
- package/lib/github-workflows/workflow-badge-generator.mjs +8 -0
- package/lib/github-workflows/workflow-test-data.cjs +73 -0
- package/lib/github-workflows/workflow-test-data.d.cts +63 -0
- package/lib/github-workflows/workflow-test-data.mjs +6 -0
- package/lib/index.cjs +1 -1
- package/lib/index.mjs +1 -1
- package/lib/node-cache-cleaner-cli.cjs +185 -2
- package/lib/node-cache-cleaner-cli.js +2 -5
- package/lib/node-cache-cleaner-cli.mjs +8 -4
- package/lib/node-executor.cjs +183 -2
- package/lib/node-executor.mjs +5 -2
- 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 +7 -12
- package/lib/npm-run-series.mjs +2 -2
- package/lib/opencode/cli/auth-rotate.cjs +143 -0
- package/lib/opencode/cli/auth-rotate.d.ts +1 -0
- package/lib/opencode/cli/auth-rotate.js +70 -0
- package/lib/opencode/cli/auth-rotate.mjs +10 -0
- package/lib/opencode/cli/list-projects.cjs +184 -0
- package/lib/opencode/cli/list-projects.d.ts +1 -0
- package/lib/opencode/cli/list-projects.js +32 -0
- package/lib/opencode/cli/list-projects.mjs +11 -0
- package/lib/opencode/cli/list-sessions.cjs +215 -0
- package/lib/opencode/cli/list-sessions.d.ts +1 -0
- package/lib/opencode/cli/list-sessions.js +45 -0
- package/lib/opencode/cli/list-sessions.mjs +11 -0
- package/lib/opencode/database.cjs +349 -0
- package/lib/opencode/database.d.ts +91 -0
- package/lib/opencode/database.js +252 -0
- package/lib/opencode/database.mjs +28 -0
- package/lib/opencode/database.runner.cjs +145 -0
- package/lib/opencode/database.runner.d.ts +1 -0
- package/lib/opencode/database.runner.js +56 -0
- package/lib/opencode/database.runner.mjs +37 -0
- package/lib/opencode/opencode-zen.runner.cjs +48 -0
- package/lib/opencode/opencode-zen.runner.d.mts +1 -0
- package/lib/opencode/opencode-zen.runner.mjs +31 -0
- package/lib/opencode/sqlite.cjs +114 -0
- package/lib/opencode/sqlite.d.ts +18 -0
- package/lib/opencode/sqlite.js +82 -0
- package/lib/opencode/sqlite.mjs +10 -0
- package/lib/opencode/storage.cjs +124 -0
- package/lib/opencode/storage.d.ts +27 -0
- package/lib/opencode/storage.js +101 -0
- package/lib/opencode/storage.mjs +38 -0
- package/lib/opencode/storage.runner.cjs +50 -0
- package/lib/opencode/storage.runner.d.ts +1 -0
- package/lib/opencode/storage.runner.js +13 -0
- package/lib/opencode/storage.runner.mjs +29 -0
- package/lib/{ps/isWin.cjs → opencode/types.cjs} +3 -12
- package/lib/opencode/types.d.ts +31 -0
- package/lib/{ps/isWin.js → opencode/types.js} +0 -2
- package/lib/opencode/types.mjs +7 -0
- package/lib/opencode/utils/check-api.cjs +59 -0
- package/lib/opencode/utils/check-api.d.ts +12 -0
- package/lib/opencode/utils/check-api.js +46 -0
- package/lib/opencode/utils/check-api.mjs +8 -0
- package/lib/opencode-cli.cjs +473 -0
- package/lib/opencode-cli.d.ts +2 -0
- package/lib/opencode-cli.js +115 -0
- package/lib/opencode-cli.mjs +111 -0
- package/lib/package-resolutions-updater-cli.cjs +218 -194
- package/lib/package-resolutions-updater-cli.mjs +6 -4
- package/lib/package-resolutions-updater.cjs +216 -192
- package/lib/package-resolutions-updater.d.mts +44 -1
- package/lib/package-resolutions-updater.mjs +5 -3
- package/lib/php-cs-fixer-staged.cjs +1 -1
- package/lib/php-cs-fixer-staged.mjs +1 -1
- package/lib/print-directory-tree.cjs +147 -21
- package/lib/print-directory-tree.mjs +17 -11
- 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/index.cjs +10 -10
- package/lib/ps/index.mjs +4 -4
- package/lib/ps/table-parser.d.ts +3 -4
- package/lib/ps/table-parser.js +9 -16
- package/lib/remove-module.cjs +17 -22
- package/lib/remove-module.mjs +2 -2
- package/lib/rm-node-module-cli.cjs +171 -4
- package/lib/rm-node-module-cli.mjs +7 -4
- package/lib/rmpath-cli.cjs +411 -0
- package/lib/rmpath-cli.d.mts +1 -0
- package/lib/rmpath-cli.mjs +25 -0
- package/lib/rmpath.cjs +113 -188
- package/lib/rmpath.mjs +7 -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 +88 -0
- package/lib/run-by-checksum/hash.d.ts +17 -0
- package/lib/run-by-checksum/hash.js +119 -0
- package/lib/run-by-checksum/hash.mjs +10 -0
- package/lib/run-by-checksum/run.cjs +185 -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 +398 -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 +137 -16
- package/lib/submodule-install.mjs +7 -6
- package/lib/submodule-remove-cli.cjs +300 -7
- package/lib/submodule-remove-cli.js +2 -2
- package/lib/submodule-remove-cli.mjs +8 -3
- package/lib/submodule-remove.cjs +146 -5
- package/lib/submodule-remove.mjs +3 -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 +3 -0
- package/lib/utils/findEnvFiles.d.cts +2 -2
- package/lib/utils/findEnvFiles.mjs +1 -1
- package/lib/utils/index.cjs +5 -10
- package/lib/utils/index.d.cts +2 -9
- package/lib/utils/index.mjs +1 -1
- package/lib/utils/isWindows.mjs +3 -1
- package/lib/utils/runBash.cjs +1 -1
- package/lib/utils/runBash.mjs +1 -1
- package/lib/vscode/project.cjs +0 -0
- package/lib/vscode/project.d.ts +0 -0
- package/lib/vscode/project.js +1 -0
- package/lib/vscode/project.mjs +7 -0
- package/lib/vscode/storage.cjs +138 -0
- package/lib/vscode/storage.d.ts +51 -0
- package/lib/vscode/storage.js +169 -0
- package/lib/vscode/storage.mjs +42 -0
- package/lib/vscode/storage.runner.cjs +125 -0
- package/lib/vscode/storage.runner.d.ts +1 -0
- package/lib/vscode/storage.runner.js +47 -0
- package/lib/vscode/storage.runner.mjs +60 -0
- package/lib/vscode-cli.cjs +155 -0
- package/lib/vscode-cli.d.ts +2 -0
- package/lib/vscode-cli.js +80 -0
- package/lib/vscode-cli.mjs +71 -0
- package/lib/yarn-per-branch-lock-installer.cjs +202 -11
- package/lib/yarn-per-branch-lock-installer.mjs +24 -11
- package/lib/yarn-reinstall.cjs +6 -11
- package/lib/yarn-reinstall.mjs +1 -1
- package/package.json +75 -28
- package/readme.html +2 -2
- package/readme.md +44 -11
- package/releases/readme.md +6 -3
- package/src/github-workflows/generate-test-ci-step-cli.mjs +126 -0
- 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/vendor/clue/ndjson-react/README.md +365 -0
- package/vendor/composer/pcre/README.md +189 -0
- package/vendor/composer/semver/README.md +99 -0
- package/vendor/composer/xdebug-handler/README.md +305 -0
- package/vendor/ergebnis/agent-detector/README.md +107 -0
- package/vendor/evenement/evenement/README.md +64 -0
- package/vendor/fidry/cpu-core-counter/README.md +138 -0
- package/vendor/friendsofphp/php-cs-fixer/README.md +97 -0
- package/vendor/psr/container/README.md +13 -0
- package/vendor/psr/event-dispatcher/README.md +6 -0
- package/vendor/psr/log/README.md +58 -0
- package/vendor/react/cache/README.md +367 -0
- package/vendor/react/child-process/README.md +619 -0
- package/vendor/react/dns/README.md +453 -0
- package/vendor/react/event-loop/README.md +930 -0
- package/vendor/react/promise/README.md +722 -0
- package/vendor/react/socket/README.md +1564 -0
- package/vendor/react/stream/README.md +1249 -0
- package/vendor/sebastian/diff/README.md +151 -0
- package/vendor/symfony/console/README.md +30 -0
- package/vendor/symfony/deprecation-contracts/README.md +26 -0
- package/vendor/symfony/event-dispatcher/README.md +25 -0
- package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
- package/vendor/symfony/filesystem/README.md +23 -0
- package/vendor/symfony/finder/README.md +24 -0
- package/vendor/symfony/options-resolver/README.md +25 -0
- package/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/vendor/symfony/polyfill-intl-grapheme/README.md +32 -0
- package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
- package/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/vendor/symfony/polyfill-php80/README.md +25 -0
- package/vendor/symfony/polyfill-php81/README.md +18 -0
- package/vendor/symfony/polyfill-php84/README.md +23 -0
- package/vendor/symfony/polyfill-php85/README.md +20 -0
- package/vendor/symfony/process/README.md +23 -0
- package/vendor/symfony/service-contracts/README.md +9 -0
- package/vendor/symfony/stopwatch/README.md +52 -0
- package/vendor/symfony/string/README.md +24 -0
- package/.opencode/package.json +0 -5
- package/lib/chunk-6S4NXESK.mjs +0 -26
- package/lib/clean-github-actions-caches.cjs +0 -249
- package/lib/clean-github-actions-caches.d.cts +0 -15
- package/lib/del-gradle.js +0 -16
- package/lib/del-node-modules.js +0 -211
- package/lib/del-ps.js +0 -32
- package/lib/del-ps.mjs +0 -43
- package/lib/find-node-modules-cli.js +0 -4
- package/lib/ps/isWin.d.ts +0 -2
- package/test/package.json +0 -20
- package/test-project/package.json +0 -22
- package/test-project/workspaces/workspace-a/package.json +0 -135
- package/test-project/workspaces/workspace-a/test/demo/package.json +0 -25
- package/test-project/workspaces/workspace-b/package.json +0 -139
- package/test-project/workspaces/workspace-b/test/sample-project/package.json +0 -7
- package/test-project/workspaces/workspace-b/themes/hexo-theme-flowbite/package.json +0 -96
- package/tmp/rm-node-modules-test-project/package.json +0 -17
- package/tmp/rm-node-modules-test-project/packages/workspace-a/package.json +0 -16
- package/tmp/rm-node-modules-test-project/packages/workspace-b/package.json +0 -16
- package/tmp/test-repo/package.json +0 -17
- /package/lib/{clean-github-actions-caches-cli.d.cts → del-gradle.d.cts} +0 -0
- /package/lib/{del-gradle.d.ts → del-node-modules.d.cts} +0 -0
- /package/lib/{del-node-modules.d.ts → del-ps-cli.d.mts} +0 -0
- /package/lib/{find-node-modules-cli.d.ts → downloader-cli.d.cts} +0 -0
- /package/lib/{git-diff-cli.d.ts → find-node-modules-cli.d.cts} +0 -0
- /package/lib/{git-fix.d.cts → git/git-diff-cli.d.ts} +0 -0
- /package/lib/{git-diff-cli.js → git/git-diff-cli.js} +0 -0
- /package/lib/{git-diff.d.ts → git/git-diff.d.ts} +0 -0
- /package/lib/{git-purge.d.cts → git/git-purge.d.cts} +0 -0
- /package/lib/{del-ps.d.ts → github-workflows/clean-github-actions-caches-cli.d.cts} +0 -0
|
@@ -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).
|
|
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).
|
|
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).
|
|
@@ -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,127 @@
|
|
|
1
|
+
# OpenCode CLI
|
|
2
|
+
|
|
3
|
+
CLI tool for inspecting and managing an OpenCode database. Connects to the local OpenCode SQLite database (`~/.local/share/opencode/opencode.db`) to list sessions and projects, and to delete sessions or projects. Also supports API key rotation from a local keys file.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
opc <command> [subcommand] [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Aliases
|
|
12
|
+
|
|
13
|
+
This command is available under several aliases (all invoke the same CLI):
|
|
14
|
+
|
|
15
|
+
- `opc` (default)
|
|
16
|
+
- `opencode-cli`
|
|
17
|
+
|
|
18
|
+
### Commands
|
|
19
|
+
|
|
20
|
+
#### `list session`
|
|
21
|
+
|
|
22
|
+
Lists all sessions in a table format showing slug, title, and version.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
opc list session
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### `list project`
|
|
29
|
+
|
|
30
|
+
Lists all projects in a table format showing truncated ID, name, and worktree path.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
opc list project
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### `delete session <id>`
|
|
37
|
+
|
|
38
|
+
Deletes a single session and all its descendant sessions by ID.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
opc delete session <session-id>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### `delete sessions`
|
|
45
|
+
|
|
46
|
+
Deletes **all** sessions from the database (irreversible).
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
opc delete sessions
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### `delete project <id>`
|
|
53
|
+
|
|
54
|
+
Deletes a project's sessions and project record from the OpenCode database (not the real project folder on disk).
|
|
55
|
+
|
|
56
|
+
The `<id>` is the project UUID shown in the first column of `opc list project`. Run that command first to find the project ID you want to delete.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
opc delete project <project-id>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### `auth rotate`
|
|
63
|
+
|
|
64
|
+
Rotates the active OpenCode API key by picking the first working key from a local keys file. Iterates through available keys (excluding the current one) and tests each against the OpenCode API, selecting the first that returns a valid response.
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
opc auth rotate
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Options
|
|
71
|
+
|
|
72
|
+
| Flag | Description |
|
|
73
|
+
| :--- | :--- |
|
|
74
|
+
| `-h`, `--help` | Show help message |
|
|
75
|
+
|
|
76
|
+
### Examples
|
|
77
|
+
|
|
78
|
+
List all sessions:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
opc list session
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Delete a specific session:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
opc delete session abc123
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Delete a project's sessions and project record from the OpenCode database (ID obtained from `opc list project`):
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
opc delete project 9a3bb589
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Rotate to a working API key:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
opc auth rotate
|
|
100
|
+
# → Rotated OpenCode API key to: my-backup-key
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### How it works
|
|
104
|
+
|
|
105
|
+
1. **Database check**: On every command except `--help`, the tool first verifies the OpenCode database is accessible via `checkDatabase()`.
|
|
106
|
+
2. **List**: Queries the `session` or `project` table and displays results in formatted tables with dynamic column widths.
|
|
107
|
+
3. **Delete**: Uses recursive SQL (Common Table Expressions) to delete sessions and their descendants, or cascading deletes for project sessions.
|
|
108
|
+
4. **Auth rotate**: Reads `.opencode.keys.jsonc` (or `.opencode.keys.json` as fallback) from the current directory, filters out the currently active key, tests each remaining key via `checkOpenCodeApi()`, and sets the first one that responds successfully.
|
|
109
|
+
|
|
110
|
+
### Requirements
|
|
111
|
+
|
|
112
|
+
For `auth rotate`, create a `.opencode.keys.jsonc` file in your project root:
|
|
113
|
+
|
|
114
|
+
```jsonc
|
|
115
|
+
[
|
|
116
|
+
// Each key must have a unique name and the actual API key value.
|
|
117
|
+
// Add this file to .gitignore to keep it private.
|
|
118
|
+
{
|
|
119
|
+
"name": "unique name for the key, e.g. email or username",
|
|
120
|
+
"key": "the actual key, e.g. sk-xxxxxx"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Source
|
|
126
|
+
|
|
127
|
+
See [`src/opencode-cli.ts`](../src/opencode-cli.ts).
|
|
@@ -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-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).
|