port-numbers 8.0.35 → 8.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +8 -5
- package/index.json +4 -4
- package/package.json +10 -11
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) silverwind
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
and/or other materials provided with the distribution.
|
|
12
|
+
|
|
13
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
14
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
15
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
16
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
17
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
18
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
19
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
20
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
21
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
22
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# port-numbers
|
|
2
2
|
[](https://www.npmjs.org/package/port-numbers) [](https://www.npmjs.org/package/port-numbers) [](https://packagephobia.com/result?p=port-numbers)
|
|
3
3
|
|
|
4
|
-
npm module that holds information on network port numbers based on [IANA's data](
|
|
4
|
+
npm 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).
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## Usage
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
```sh
|
|
9
|
+
pnpm add port-numbers
|
|
10
|
+
```
|
|
9
11
|
|
|
12
|
+
Depending 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).
|
|
10
13
|
|
|
11
14
|
```js
|
|
12
15
|
import ports from "port-numbers" with {type: "json"};
|
|
@@ -17,9 +20,9 @@ ports["123/udp"];
|
|
|
17
20
|
// ["ntp", "Network Time Protocol"]
|
|
18
21
|
```
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
## API
|
|
21
24
|
|
|
22
|
-
The export is a JSON object
|
|
25
|
+
The export is a JSON object with `port/proto` as key and `[name, description]` as value.
|
|
23
26
|
|
|
24
27
|
```json
|
|
25
28
|
{
|
package/index.json
CHANGED
|
@@ -31772,12 +31772,12 @@
|
|
|
31772
31772
|
"Reserved"
|
|
31773
31773
|
],
|
|
31774
31774
|
"4416/tcp": [
|
|
31775
|
-
"
|
|
31776
|
-
"
|
|
31775
|
+
"newmood-player",
|
|
31776
|
+
"Newmood Media Player"
|
|
31777
31777
|
],
|
|
31778
31778
|
"4416/udp": [
|
|
31779
|
-
"
|
|
31780
|
-
"
|
|
31779
|
+
"newmood-player",
|
|
31780
|
+
"Newmood Media Player discovery"
|
|
31781
31781
|
],
|
|
31782
31782
|
"4417/tcp": [
|
|
31783
31783
|
"workflowdir",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "port-numbers",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.37",
|
|
4
4
|
"description": "Holds information on network port numbers, based on IANA's data",
|
|
5
5
|
"author": "silverwind",
|
|
6
6
|
"repository": {
|
|
@@ -17,18 +17,17 @@
|
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/d3-dsv": "3.0.7",
|
|
20
|
-
"@types/node": "26.
|
|
20
|
+
"@types/node": "26.6.3",
|
|
21
21
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
22
22
|
"d3-dsv": "3.0.1",
|
|
23
|
-
"eslint": "10.
|
|
24
|
-
"eslint-config-silverwind": "
|
|
25
|
-
"jest-extended": "7.0.0",
|
|
23
|
+
"eslint": "10.11.0",
|
|
24
|
+
"eslint-config-silverwind": "151.0.1",
|
|
26
25
|
"typescript": "6.0.3",
|
|
27
|
-
"typescript-config-silverwind": "
|
|
28
|
-
"updates": "
|
|
29
|
-
"updates-config-silverwind": "4.0.
|
|
30
|
-
"versions": "15.
|
|
31
|
-
"vitest": "
|
|
32
|
-
"vitest-config-silverwind": "
|
|
26
|
+
"typescript-config-silverwind": "21.0.1",
|
|
27
|
+
"updates": "19.0.2",
|
|
28
|
+
"updates-config-silverwind": "4.0.7",
|
|
29
|
+
"versions": "15.5.1",
|
|
30
|
+
"vitest": "5.0.2",
|
|
31
|
+
"vitest-config-silverwind": "12.0.5"
|
|
33
32
|
}
|
|
34
33
|
}
|