{"name":"port-numbers","version":"8.0.1","author":{"name":"silverwind"},"license":"BSD-2-Clause","_id":"port-numbers@8.0.1","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":"944ff97bf7e3d12e3d422e2e1dd228741120ed5c","tarball":"http://registry-npm.ywwl.com/port-numbers/download/port-numbers-8.0.1.tgz","fileCount":3,"integrity":"sha512-sfpKPwI/iowIIxDLyYq4m1jnq1KyCowJyni2IbM7ZgfOF/EIhgl/QrihftZqHD5NyVqHK2kWoI04X9rgF891yA==","signatures":[{"sig":"MEQCIBpy4DgCT6lTI/p2uktY5uYl7SDGvbASPGMIfLdqWfJlAiBpZSz4I//LkXAA5lYfLlCs9iWHZI1hPI/ENV0Y/isUAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":550717,"size":135176,"noattachment":false,"key":"/port-numbers/-/port-numbers-8.0.1.tgz"},"main":"./index.json","type":"module","exports":"./index.json","gitHead":"b0c7b47fb75a52d4971bab00d2ac111e419fde88","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"repository":{"url":"git+https://github.com/silverwind/port-numbers.git","type":"git"},"_npmVersion":"9.8.1","description":"Holds information on network port numbers, based on IANA's data","directories":{},"sideEffects":false,"_nodeVersion":"20.5.0","_hasShrinkwrap":false,"devDependencies":{"d3-dsv":"3.0.1","eslint":"8.46.0","undici":"5.23.0","vitest":"0.34.1","updates":"14.3.4","versions":"11.0.1","fetch-enhanced":"11.1.2","eslint-config-silverwind":"74.0.3","vitest-config-silverwind":"3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/port-numbers_8.0.1_1691453208906_0.19562154754240324","host":"s3://npm-registry-packages"},"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](http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml).\n\n### Usage\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\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 in 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":1691453209057,"_cnpm_publish_time":1691453209057,"dist-tags":{"latest":"8.0.39"}}