{"name":"port-numbers","version":"8.0.31","author":{"name":"silverwind"},"license":"BSD-2-Clause","_id":"port-numbers@8.0.31","maintainers":[{"name":"silverwind","email":"npm@silverwind.io"}],"homepage":"https://github.com/silverwind/port-numbers#readme","bugs":{"url":"https://github.com/silverwind/port-numbers/issues"},"dist":{"shasum":"32d90a4d911e603283fd30c88dffc11e7c3c1fe6","tarball":"http://registry-npm.ywwl.com/port-numbers/download/port-numbers-8.0.31.tgz","fileCount":3,"integrity":"sha512-EXT9qLxl1QhPNORkWJHPmpB1Lb3zWt0V7qVBZfxaHrtOgtAB/pIc8CwntufghHbCD+RUmAZa8Asb2iArhdGTKg==","signatures":[{"sig":"MEUCIQDf5I6j+Tm+G7jnSr1qhP7Gypfk70BSRAB050fn6TxwZQIgJ7F+vFh5CC4TW46FYa0FsNPD2Jiv0L+VYEUZauNywgU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/port-numbers@8.0.31","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":687974,"size":139812,"noattachment":false,"key":"/port-numbers/-/port-numbers-8.0.31.tgz"},"main":"./index.json","type":"module","_from":"file:port-numbers-8.0.31.tgz","exports":"./index.json","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b654cf36-82cb-42a0-930b-b10cac550ad6"}},"_resolved":"/tmp/1209d95795e6e0f101a954e3f3318a63/port-numbers-8.0.31.tgz","_integrity":"sha512-EXT9qLxl1QhPNORkWJHPmpB1Lb3zWt0V7qVBZfxaHrtOgtAB/pIc8CwntufghHbCD+RUmAZa8Asb2iArhdGTKg==","repository":{"url":"git+https://github.com/silverwind/port-numbers.git","type":"git"},"_npmVersion":"11.12.1","description":"Holds information on network port numbers, based on IANA's data","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","_hasShrinkwrap":false,"devDependencies":{"d3-dsv":"3.0.1","eslint":"9.39.2","vitest":"4.1.4","updates":"17.15.5","versions":"15.0.0","jest-extended":"7.0.0","eslint-config-silverwind":"131.0.5","vitest-config-silverwind":"11.3.1","updates-config-silverwind":"2.1.1","typescript-config-silverwind":"18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/port-numbers_8.0.31_1776732037143_0.29197376570816314","host":"s3://npm-registry-packages-npm-production"},"readme":"# port-numbers\n[![](https://img.shields.io/npm/v/port-numbers.svg?style=flat)](https://www.npmjs.org/package/port-numbers) [![](https://img.shields.io/npm/dm/port-numbers.svg)](https://www.npmjs.org/package/port-numbers) [![](https://packagephobia.com/badge?p=port-numbers)](https://packagephobia.com/result?p=port-numbers)\n\nnpm module that holds information on network port numbers based on [IANA's data](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml).\n\n## Usage\n\n```sh\npnpm add port-numbers\n```\n\nDepending on your environment you may need to use [import attributes](https://github.com/tc39/proposal-import-attributes), [import assertions](https://nodejs.org/api/esm.html#import-assertions) or [nothing at all](https://bun.sh/guides/runtime/import-json).\n\n```js\nimport ports from \"port-numbers\" with {type: \"json\"};\n\nports[\"6379/tcp\"];\n// [\"redis\", \"An advanced key-value cache and store\"]\nports[\"123/udp\"];\n// [\"ntp\", \"Network Time Protocol\"]\n```\n\n## API\n\nThe export is a JSON object with `port/proto` as key and `[name, description]` as value.\n\n```json\n{\n  \"6379/tcp\": [\n    \"redis\",\n    \"An advanced key-value cache and store\"\n  ]\n}\n```\n\n© [silverwind](https://github.com/silverwind), distributed under BSD licence\n","publish_time":1776732037316,"_cnpm_publish_time":1776732037316,"dist-tags":{"latest":"8.0.39"}}