{"name":"port-numbers","version":"7.0.0","author":{"name":"silverwind"},"license":"BSD-2-Clause","_id":"port-numbers@7.0.0","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":"32713b2f5eb63994f98b9b037fe01a6add0b9c31","tarball":"http://registry-npm.ywwl.com/port-numbers/download/port-numbers-7.0.0.tgz","fileCount":5,"integrity":"sha512-sKFTZDinXhxjlKfrtMvjR+ebmr7SHvwCVvTZxasasCinkL+48bPRQxujv4VW+9B7Riegtl/081ccEfjrtqq0zA==","signatures":[{"sig":"MEYCIQDj8OADf6g0dR2B+K5XUHxKW1lSHY99p+OrJrq2+LFejwIhAKLNy+fJpBhQbfKfVn5hP58j+YNrJXkTusMhrfopz6kD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1798513,"size":282615,"noattachment":false,"key":"/port-numbers/-/port-numbers-7.0.0.tgz"},"type":"module","engines":{"node":">=16"},"gitHead":"63d93433a062635ee81abb7569964c48abef9843","_npmUser":{"name":"silverwind","email":"npm@silverwind.io"},"repository":{"url":"git+https://github.com/silverwind/port-numbers.git","type":"git"},"_npmVersion":"9.6.5","description":"Get information on network port numbers and services, based on IANA's public listing","directories":{},"sideEffects":false,"_nodeVersion":"20.0.0","_hasShrinkwrap":false,"devDependencies":{"got":"12.6.0","d3-dsv":"3.0.1","eslint":"8.40.0","undici":"5.22.1","vitest":"0.31.0","updates":"14.1.0","versions":"11.0.0","fetch-enhanced":"11.1.1","eslint-config-silverwind":"71.0.3"},"_npmOperationalInternal":{"tmp":"tmp/port-numbers_7.0.0_1683909716517_0.9425275453086368","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":1683909716763,"_cnpm_publish_time":1683909716763,"dist-tags":{"latest":"8.0.39"}}