{"_id":"npm-normalize-package-bin","_rev":"4130906","name":"npm-normalize-package-bin","description":"Turn any flavor of allowable package.json bin into a normalized object","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2026-03-01T18:33:08.000Z","created":"2019-12-09T23:00:20.938Z","5.0.0":"2025-10-22T15:30:59.587Z","4.0.0":"2024-09-05T00:19:29.155Z","3.0.1":"2023-05-02T20:50:24.353Z","3.0.0":"2022-10-14T05:23:11.458Z","2.0.0":"2022-08-22T23:00:19.157Z","1.0.1":"2019-12-09T23:42:09.030Z","1.0.0":"2019-12-09T23:00:20.938Z"},"users":{},"author":{"name":"GitHub Inc."},"repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"versions":{"5.0.0":{"name":"npm-normalize-package-bin","version":"5.0.0","description":"Turn any flavor of allowable package.json bin into a normalized object","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.27.1","tap":"^16.3.0"},"engines":{"node":"^20.17.0 || >=22.9.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.27.1","publish":"true"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"c766b99440e11de15fa842d82fbc4fc653853b38","_id":"npm-normalize-package-bin@5.0.0","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_nodeVersion":"22.20.0","_npmVersion":"11.6.2","dist":{"shasum":"2b207ff260f2e525ddce93356614e2f736728f89","size":1877,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-5.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9a591f63-bc8a-425c-9108-47a93896d563"}},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/npm-normalize-package-bin_5.0.0_1761147059376_0.7461613959039268"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-22T15:30:59.587Z","publish_time":1761147059587,"_source_registry_name":"default","_cnpm_publish_time":1761147059587},"4.0.0":{"name":"npm-normalize-package-bin","version":"4.0.0","description":"Turn any flavor of allowable package.json bin into a normalized object","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","tap":"^16.3.0"},"engines":{"node":"^18.17.0 || >=20.5.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.3","publish":"true"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"_id":"npm-normalize-package-bin@4.0.0","gitHead":"4594c6855a937f2d1296fe5b61adf318a9bf529b","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_nodeVersion":"22.8.0","_npmVersion":"10.8.3","dist":{"shasum":"df79e70cd0a113b77c02d1fe243c96b8e618acb1","size":1874,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-4.0.0.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_4.0.0_1725495569017_0.7050804973997362"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-05T00:19:29.155Z","publish_time":1725495569155,"_source_registry_name":"default","_cnpm_publish_time":1725495569155},"3.0.1":{"name":"npm-normalize-package-bin","version":"3.0.1","description":"Turn any flavor of allowable package.json bin into a normalized object","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","posttest":"npm run lint"},"devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.14.1","tap":"^16.3.0"},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.14.1","publish":"true"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"8d11759818e4224c053be0810326918980c90a6d","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_id":"npm-normalize-package-bin@3.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"shasum":"25447e32a9a7de1f51362c61a559233b89947832","size":1840,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-3.0.1.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_3.0.1_1683060624197_0.6113286668602453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-02T20:50:24.353Z","publish_time":1683060624353,"_source_registry_name":"default","_cnpm_publish_time":1683060624353},"3.0.0":{"name":"npm-normalize-package-bin","version":"3.0.0","description":"Turn any flavor of allowable package.json bin into a normalized object","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","posttest":"npm run lint"},"devDependencies":{"@npmcli/eslint-config":"^3.1.0","@npmcli/template-oss":"4.5.1","tap":"^16.3.0"},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.5.1"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"f3db0cf9c67c5446b84d13052da0437f212e3f87","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_id":"npm-normalize-package-bin@3.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"shasum":"6097436adb4ef09e2628b59a7882576fe53ce485","size":1826,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-3.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_3.0.0_1665724991246_0.4581128291666525"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-14T19:22:22.367Z","publish_time":1665724991458,"_cnpm_publish_time":1665724991458},"2.0.0":{"name":"npm-normalize-package-bin","version":"2.0.0","description":"Turn any flavor of allowable package.json bin into a normalized object","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"GitHub Inc."},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","prepublishOnly":"git push origin --follow-tags","posttest":"npm run lint"},"devDependencies":{"@npmcli/eslint-config":"^3.1.0","@npmcli/template-oss":"3.5.0","tap":"^16.3.0"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.5.0"},"gitHead":"3a177d6b0d0063855612510c81ff9e2191517cde","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_id":"npm-normalize-package-bin@2.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.18.0","dist":{"shasum":"9447a1adaaf89d8ad0abe24c6c84ad614a675fff","size":1834,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-2.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_2.0.0_1661209218971_0.8074207735827665"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-22T23:00:21.044Z","publish_time":1661209219157,"_cnpm_publish_time":1661209219157},"1.0.1":{"name":"npm-normalize-package-bin","version":"1.0.1","description":"Turn any flavor of allowable package.json bin into a normalized object","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.10.2"},"gitHead":"812e4af8749ee8acaa78e4d9e9ce3983897227ea","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_id":"npm-normalize-package-bin@1.0.1","_nodeVersion":"12.12.0","_npmVersion":"6.13.2","dist":{"shasum":"6e79a41f23fd235c0623218228da7d9c23b8f6e2","size":31187,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-1.0.1.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_1.0.1_1575934928937_0.7548793808830665"},"_hasShrinkwrap":false,"publish_time":1575934929030,"_cnpm_publish_time":1575934929030},"1.0.0":{"name":"npm-normalize-package-bin","version":"1.0.0","description":"Turn any flavor of allowable package.json bin into a normalized object","repository":{"type":"git","url":"git+https://github.com/npm/npm-normalize-package-bin.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.10.2"},"gitHead":"f2b2b3467d6f91384598898b52b5d9490035fbad","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","_id":"npm-normalize-package-bin@1.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.13.2","dist":{"shasum":"c05ea346d29087efb34181adae00c667950aa163","size":31097,"noattachment":false,"key":"/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-normalize-package-bin/download/npm-normalize-package-bin-1.0.0.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"hashtagchris","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-normalize-package-bin_1.0.0_1575932420747_0.056471445051378355"},"_hasShrinkwrap":false,"publish_time":1575932420938,"_cnpm_publish_time":1575932420938}},"readme":"# npm-normalize-package-bin\n\nTurn any flavor of allowable package.json bin into a normalized object.\n\n## API\n\n```js\nconst normalize = require('npm-normalize-package-bin')\nconst pkg = {name: 'foo', bin: 'bar'}\nconsole.log(normalize(pkg)) // {name:'foo', bin:{foo: 'bar'}}\n```\n\nAlso strips out weird dots and slashes to prevent accidental and/or\nmalicious bad behavior when the package is installed.\n","_attachments":{},"homepage":"https://github.com/npm/npm-normalize-package-bin#readme","bugs":{"url":"https://github.com/npm/npm-normalize-package-bin/issues"},"license":"ISC"}