{"versions":{"1.0.0":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.0","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^10.0.0","@types/node":"^20.8.4","standard":"^17.0.0","npm-run-all2":"^6.0.0","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^8.0.0","typescript":"~5.3.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.0","gitHead":"c15b29bc3e9922e421c80ca4cfcdd28186a1dbf4","types":"./index.d.ts","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-xMSYKCI9vDSS7pPkljfpCNjOWWX9ROgToFmmvqYJ9w4yEe4C3bK5o5WnciTDwNRC3WPNz4r1+NEVWTz33LPCQw==","shasum":"8fb722b1710eed447a6a6ebf5d7fa0670e806a58","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.0.tgz","fileCount":13,"unpackedSize":18815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC990+BUY+AmHayFqSuLDqemGE5woyYH+FblVT3kg5O8AiEAitms4HYeColFrDQJXih7P2IilNo5cjW2a5wtmCOglx8="}],"size":6529},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.0_1703628464785_0.5301185674527984"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-26T22:07:45.050Z","publish_time":1703628465050,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.1","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^10.0.0","@types/node":"^20.8.4","standard":"^17.0.0","npm-run-all2":"^6.0.0","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^8.0.0","typescript":"~5.3.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.1","gitHead":"710de2b7b8340d03ecf4692a1e5e297c3ccada13","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-db2ZestCl05RZRF3Qc73v54rpGPUNazbmERPLqUYid4PCydrWXZb8e4vQqxNyyvPmaaN44OhMrgfKX22/LUKig==","shasum":"1e8169d4ac56f9eb60742b26939d6dd9bc4ef90a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.1.tgz","fileCount":15,"unpackedSize":22083,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYVu1JDRGNYVD066fx+IkPzuRMgXZJQrwO3PEesiaeyAiEAiAtHD8zFVme14xaxTqYB8eNk+4uZ5TOqT5/B7psTulo="}],"size":7373},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.1_1703639376612_0.4608151352144183"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-27T01:09:36.846Z","publish_time":1703639376846,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.2","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^10.0.0","@types/node":"^20.8.4","standard":"^17.0.0","npm-run-all2":"^6.0.0","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^8.0.0","typescript":"~5.3.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.2","gitHead":"6c1c06226c4d59fd1f806de1b4c3279111fb5ab0","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-JhbL5KVRhRh8/A7iUKItQBIJgLSEXAbnaXLDdtAAzMMOzYUh7ca202pedCrQ9ojtaeXo0DYRR8bL+BG0a8mUTg==","shasum":"65d7a765ca6f5ba35d629144a904a507824fb698","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.2.tgz","fileCount":15,"unpackedSize":24617,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbHLL2p4YSK7RhXwhaN0qc0vhgFP0vqjUVVaObwd1AIgIhAIQN95bCYcllsX2kLhk/o8vLxSgOiniXCe70EOl7DHon"}],"size":8075},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.2_1703797842307_0.3257111291006096"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-28T21:10:42.513Z","publish_time":1703797842513,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.3","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^10.0.0","@types/node":"^20.8.4","standard":"^17.0.0","npm-run-all2":"^6.0.0","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^8.0.0","typescript":"~5.3.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.3","gitHead":"4c783be83839687e339f637337db521fa5d03c13","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-jWTAOMrkCgB5TIXTz5HJme0ne9Imd0nGufZCfg2xZhF3NnTjYClihL96mp0FOXkgThwmK8CG6U8Gdj+K2oSckg==","shasum":"f82e75bc01b25ecaeb02d289293c8871ff7d20aa","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.3.tgz","fileCount":15,"unpackedSize":24845,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUcoDImj2+IWFJ/82CEfCSMlrvf8TKSrTT7wrsX+3EmAiBm0kZb1Cvk/doIh47jU4Le9Yc/54RES8VfxCuUce1Img=="}],"size":8089},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.3_1703798599180_0.6693828414231886"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-28T21:23:19.450Z","publish_time":1703798599450,"_source_registry_name":"default","contributors":[]},"1.0.4":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.4","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^10.0.0","@types/node":"^20.8.4","standard":"^17.0.0","npm-run-all2":"^6.0.0","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^8.0.0","typescript":"~5.3.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.4","gitHead":"2cd1676ac78755d8cf6708825c6c9a38962b3634","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+sHf7dRfrC+LfsZcsnW7qp/1y9u0GRU4VrNWZ/c60AVai0E7NFJ/IVMSIMs9nF14uBlJRf7PmaFDHcDZFaSPAw==","shasum":"38b8a6262fe8741468e1800a75241e465f50b5c0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.4.tgz","fileCount":15,"unpackedSize":24933,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFNggyyp33KyhNrpYQcq2ZB0tAvpTjdt6sRyWcXX2SgAiEA8mtFg2q47ya5ZW1dJBqRLsuLd1k3uZGzgKBq2TQ/SgQ="}],"size":8134},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.4_1703799206877_0.9425813802609939"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-28T21:33:27.133Z","publish_time":1703799207133,"_source_registry_name":"default","contributors":[]},"1.0.5":{"name":"argsclopts","description":"cliclopts but for Node.js parseArgs","version":"1.0.5","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^15.1.0","@types/node":"^22.0.2","standard":"^17.0.0","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^10.0.0","typescript":"~5.7.2"},"engines":{"node":">=21","npm":">=10"},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","exports":"./index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/argsclopts.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:standard":"standard --verbose","test:node-test":"c8 node --test --test-reporter spec","test:tsc":"tsc","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"argsclopts@1.0.5","gitHead":"4d75cd51afbfacc7ca2518527edd0e812833a944","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-xWRucv7L5dRTlWumSRs0m3jwsssGUhK74I8ysemv1N2SJv6ApGZtxo/HvFPNZgFpYJy8oFntPDGEEVWKqINm2w==","shasum":"9c1b98771c06a4d0f3943f1fff02791045127063","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.0.5.tgz","fileCount":15,"unpackedSize":25832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD83lmyGKA/5pYpKusLn7lrg/XhyGHGQXBOA8HkktwdSgIgEv1NLq55FTY8nGgoyChc3e+rHyTb/7vdNC8OiB8ok2c="}],"size":8455},"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argsclopts_1.0.5_1732833661145_0.7319628019813706"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-28T22:41:01.324Z","publish_time":1732833661324,"_source_registry_name":"default","contributors":[]},"1.1.1":{"_id":"argsclopts@1.1.1","bugs":{"url":"https://github.com/bcomnes/argsclopts/issues"},"dist":{"shasum":"eeeaf17b115d2fbe6bdf6014da1b4566321637cd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/argsclopts/-/argsclopts-1.1.1.tgz","fileCount":7,"integrity":"sha512-6WxZv61e68WtkWfKkZSMJ85ErP5DKMr2O8J9cJ9AF/55fAJKq4PzPyVCmP26LGqtqyYhbLcZCAwlUiACYl0sZQ==","signatures":[{"sig":"MEUCIEIJA1/Pwy09a2yogUGX5h4EKPclROGvJmsJCDxS4SxTAiEAjUz0UPGoVl2QLatJd8Qn6HJKVLTx/rfavaN789sxf+A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAPT0BFTxgpRKq2ppQc8ZnWT8QQFXwcJH7MZaaw/F6+UAiAUyiWaFIWnHyDH0cc6sTdyJKvt3FyQCX2ALhwwa4hCMw=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/argsclopts@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28075,"size":8386},"main":"index.js","name":"argsclopts","type":"module","types":"index.d.ts","author":{"url":"https://bret.io","name":"Bret Comnes","email":"bcomnes@gmail.com"},"module":"index.js","engines":{"npm":">=10","node":"^22.13.0 || >=24"},"exports":"./index.js","funding":{"url":"https://github.com/sponsors/bcomnes","type":"individual"},"gitHead":"b6bd281e0d08f4c94dbaea86b23438799abb88cb","license":"MIT","scripts":{"test":"run-s test:*","build":"npm run clean && run-p build:*","clean":"run-p clean:*","version":"releasearoni version","test:tsc":"tsc","test:lint":"eslint","postpublish":"npm run clean","prepublishOnly":"releasearoni","test:node-test":"node --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=lcov.info --test","build:declaration":"tsc -p declaration.tsconfig.json","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')"},"version":"1.1.1","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"18f0b41d-f59a-4688-aad9-241e017a9b08"}},"homepage":"https://github.com/bcomnes/argsclopts","keywords":[],"repository":{"url":"git+https://github.com/bcomnes/argsclopts.git","type":"git"},"_npmVersion":"11.19.1","description":"cliclopts but for Node.js parseArgs","directories":{},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"}],"_nodeVersion":"24.22.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.13.0","typescript":"~7.0.2","@types/node":"^26.0.0","neostandard":"^0.14.1","npm-run-all2":"^9.0.0","releasearoni":"^0.2.0","@voxpelli/tsconfig":"^17.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/argsclopts_1.1.1_1795051934509_0.5796779395077593"},"_cnpmcore_publish_time":"2026-11-19T01:32:14.635Z","publish_time":1795051934635,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.1.1"},"name":"argsclopts","time":{"created":"2023-12-26T22:07:49.693Z","modified":"2026-11-19T01:32:27.354Z","1.0.0":"2023-12-26T22:07:45.050Z","1.0.1":"2023-12-27T01:09:36.846Z","1.0.2":"2023-12-28T21:10:42.513Z","1.0.3":"2023-12-28T21:23:19.450Z","1.0.4":"2023-12-28T21:33:27.133Z","1.0.5":"2024-11-28T22:41:01.324Z","1.1.1":"2026-11-19T01:32:14.635Z"},"readme":"# argsclopts\n[![latest version](https://img.shields.io/npm/v/argsclopts.svg)](https://www.npmjs.com/package/argsclopts)\n[![Actions Status](https://github.com/bcomnes/argsclopts/workflows/tests/badge.svg)](https://github.com/bcomnes/argsclopts/actions)\n\n[![downloads](https://img.shields.io/npm/dm/argsclopts.svg)](https://npmtrends.com/argsclopts)\n[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)\n[![Socket Badge](https://socket.dev/api/badge/npm/package/argsclopts)](https://socket.dev/npm/package/argsclopts)\n\n[cliclopts](https://github.com/finnp/cliclopts) but for [Node.js parseArgs](https://nodejs.org/api/util.html#utilparseargsconfig). A library that formats standard usage strings using the `node:util` `parseArgs` `options` object shape with an additional `help` field added to it.\n\n```\nnpm install argsclopts\n```\n\n## Usage\n\n``` js\nimport { printHelpText } from 'argsclopts'\nimport { join } from 'node:path'\nimport { parseArgs } from 'node:util'\n\n/**\n * @typedef {import('argsclopts').ArgscloptsParseArgsOptionsConfig} ArgscloptsParseArgsOptionsConfig\n */\n\nconst pkgPath = join(import.meta.dirname, 'package.json')\n\n/** @type {ArgscloptsParseArgsOptionsConfig} */\nconst options = {\n  foo: {\n    type: 'boolean',\n    short: 'f',\n    help: 'A foo flag thats a boolean'\n  },\n  bar: {\n    type: 'string',\n    help: 'A bar flag thats a string'\n  }\n}\n\nawait printHelpText({\n  options,\n  pkgPath\n})\n/*\n\nUsage: argsclopts [options]\n\n    Example: argsclopts\n\n    --foo, -f              A foo flag thats a boolean\n    --bar                  A bar flag thats a string\n\nargsclopts (v1.0.0)\n\n */\n\nconst args = ['-f', '--bar', 'b']\nconst { values } = parseArgs({ args, options })\nconsole.log(values)\n// { foo: true, bar: 'b' }\n```\n\n## API\n\n### `import { formatHelpText, printHelpText, usage, header, footer } from 'argsclopts'`\n\nYou can import `formatHelpText`, `printHelpText`, `usage`, `header`, `footer` from `argsclopts`.\ns\n### `helpText = formatHelpText({ options, [format], [pkgPath], [name], [version], [footerFn], [headerFn], [exampleFn]})`\n\nGenerate the `helptText` string. Requires passing in an `options` object that you provide to [`parseArgs`](https://nodejs.org/api/util.html#utilparseargsconfig), with one additional field per flag: `help`. You should also provide `pkgPath` (a resolved path the `package.json`) so that a bin name and version can be resolved. Otherwise, pass in a `name` and `version` to override any resolved data from `pkgPath`. If both  `name` and `version` are provided, a `pkgPath` is required. The `headerFn`, and `exampleFn` can be used to override the header text and the `footerFn` can be used to override the footer text.\n\nAn example `options` object might look like this:\n\n```js\nconst options = {\n  foo: {\n    type: 'boolean',\n    short: 'f',\n    help: 'A foo flag thats a boolean'\n  },\n  bar: {\n    type: 'string',\n    help: 'A bar flag thats a string'\n  }\n}\n```\n\n\n### `void printHelpText({ options, [format], [pkgPath], [name], [version], [footerFn], [headerFn], [exampleFn]})`\n\nExactly the same as `formatHelpText` except it uses `console.log` to print the text for you. Returns nothing.\n\n### `usageText = usage(options, [format])`\n\nGenerate just the usage string with a given `options` object.\n\n#### Description layout and wrapping\n\nDescription layout controls where option descriptions start, and word wrapping breaks long descriptions into readable lines that fit a chosen output width.\nContinuation lines align with the description column, keeping multiline explanations visually separate from option labels.\nThese settings affect only the option list, not headers, examples, or footers.\n\nPass `format` as the second argument to `usage()`, or as the `format` property of `formatHelpText()` and `printHelpText()`.\nOmitting `format`, or passing `{}`, preserves the existing output without word wrapping.\n\n| Setting | Default | Meaning |\n| --- | --- | --- |\n| `lineWidth` | Unset | Total line width including indentation; setting it enables word wrapping. |\n| `descriptionColumn` | `27` | Zero-based column where descriptions and their continuation lines start. |\n\n`descriptionColumn` must be a safe integer greater than the four-space label indentation.\n`lineWidth`, when supplied, must be a safe integer greater than `descriptionColumn`.\nInvalid dimensions throw a `RangeError`.\nWith formatting enabled, labels that reach the description column are placed on their own line.\nProviding only `descriptionColumn` changes alignment without enabling word wrapping.\n\n```js\nconst options = {\n  watch: {\n    type: 'boolean',\n    short: 'w',\n    help: 'Watch source files and rebuild the project whenever a file changes.'\n  }\n}\nconst format = { lineWidth: 60, descriptionColumn: 24 }\n\nconsole.log(usage(options, format))\n//     --watch, -w         Watch source files and rebuild the\n//                        project whenever a file changes.\n\nawait printHelpText({ options, name: 'example', version: '1.0.0', format })\n```\n\nExplicit line breaks and blank lines are preserved, and nonempty continuation lines are aligned with the description column.\nWord wrapping normalizes whitespace within each line and includes the displayed default-value suffix.\nWords longer than the available width, including long URLs, are left intact and may exceed `lineWidth`; labels are not split either.\nWidths use JavaScript string lengths, not terminal display-cell measurements.\n\n### `headerText = header({ [pkgPath], [name], [headerFn], [exampleFn] })`\n\nGenerate the headerText only. Pass in either a `pkgPath` string path to the `package.json` of the bin you are printing for, or a `name`. The `headerFn` and `exampleFn` allow you to override the header text that is generated. Each function receilves an object with a `name` key.\n\n### `footerText = footer({ [pkgPath], [name], [version], [footerFn] })`\n\nGenerate the footerText only. Pass in either a `pkgPath` string path to the `package.json` of the bin you are printing for, or a `name` and/or `version`. The `footerFn` lets you override the footer text template and receives an object with a `name` and `version` key.\n\n## License\n\nMIT","users":{}}