{"name":"port-numbers","version":"8.0.35","author":"silverwind","license":"BSD-2-Clause","_id":"port-numbers@8.0.35","maintainers":[{"name":"silverwind","email":"npm@silverwind.io"}],"dist":{"shasum":"a385b3891500cef9b1fd38fd500165a1d5494928","tarball":"http://registry-npm.ywwl.com/port-numbers/download/port-numbers-8.0.35.tgz","fileCount":3,"integrity":"sha512-UKqAYWRp04DYI6i2qakK7NMERiqka6qxgnxhm+ZDosiNYv9aNVieWymmQ3BV13A3LgflizlhoAVEtr0wZsvCbQ==","signatures":[{"sig":"MEUCIEpAuVypj0WZhb5z23DjRRH4XhgT1Rvgip1ERnqmCQQcAiEAraM9XZwcubMMYAEVXsYCOI6MbuEMwLAaGeOS4gmGxJ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/port-numbers@8.0.35","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":689379,"size":140183,"noattachment":false,"key":"/port-numbers/-/port-numbers-8.0.35.tgz"},"main":"./index.json","type":"module","exports":"./index.json","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b654cf36-82cb-42a0-930b-b10cac550ad6"}},"repository":{"url":"https://github.com/silverwind/port-numbers.git","type":"git"},"description":"Holds information on network port numbers, based on IANA's data","directories":{},"sideEffects":false,"_nodeVersion":"26.8.1","_hasShrinkwrap":false,"devDependencies":{"d3-dsv":"3.0.1","eslint":"10.4.0","vitest":"4.1.10","updates":"18.0.0","versions":"15.3.4","typescript":"6.0.3","@types/node":"26.1.2","@types/d3-dsv":"3.0.7","jest-extended":"7.0.0","eslint-config-silverwind":"144.0.0","vitest-config-silverwind":"11.5.0","updates-config-silverwind":"4.0.5","@typescript/native-preview":"7.0.0-dev.20260707.2","typescript-config-silverwind":"20.0.3"},"_npmOperationalInternal":{"tmp":"tmp/port-numbers_8.0.35_1788594736948_0.42853632598866254","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":1788594737100,"_cnpm_publish_time":1788594737100,"dist-tags":{"latest":"8.0.39"}}