{"name":"port-numbers","version":"8.0.27","author":{"name":"silverwind"},"license":"BSD-2-Clause","_id":"port-numbers@8.0.27","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":"e8223b25df6621a969351c8973547f915cc65da9","tarball":"http://registry-npm.ywwl.com/port-numbers/download/port-numbers-8.0.27.tgz","fileCount":3,"integrity":"sha512-Fja3o2yXO0ch/yqNMlli6GnVYinlPFrWhPQM/LQUhRnFMKhzmDED+xxgjEZjO7oOVAGn7u9g7ICJ5RPttojAmg==","signatures":[{"sig":"MEUCIHCBU2XEDZWDkiGYLioPMsJSuDNqpFc7HPC6R6EWZPbHAiEA1Zqf1o0Q51Kdh9PdvDUnHXZK9RuMqP0yzOmhFINnsvs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":687319,"size":139006,"noattachment":false,"key":"/port-numbers/-/port-numbers-8.0.27.tgz"},"main":"./index.json","type":"module","exports":"./index.json","gitHead":"d07b22d9edd247739c0d363910c2f2b32664570f","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"repository":{"url":"git+https://github.com/silverwind/port-numbers.git","type":"git"},"_npmVersion":"10.8.2","description":"Holds information on network port numbers, based on IANA's data","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","_hasShrinkwrap":false,"devDependencies":{"d3-dsv":"3.0.1","eslint":"8.57.0","vitest":"1.6.0","updates":"16.1.1","versions":"12.0.2","eslint-config-silverwind":"85.1.4","vitest-config-silverwind":"9.0.6"},"_npmOperationalInternal":{"tmp":"tmp/port-numbers_8.0.27_1750133738741_0.9240644298841438","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":1750133738979,"_cnpm_publish_time":1750133738979,"dist-tags":{"latest":"8.0.39"}}