service-names-port-numbers

IANA assigned port numbers

Usage no npm install needed!

<script type="module">
  import serviceNamesPortNumbers from 'https://cdn.skypack.dev/service-names-port-numbers';
</script>

README

service-names-port-numbers

A simple json list with IANA assigned port numbers. See IANAs Service Name and Transport Protocol Port Number Registry for more details.

npm install service-names-port-numbers

Usage

var ports = require('service-names-port-numbers')();

In the above example ports is an array containg objects with following format.

{
    ServiceName: 'test',
    PortNumber: '1024',
    TransportProtocol: 'tcp',
    Description: 'Test service',
    Assignee: '[Assignee]',
    Contact: '[Contact]',
    RegistrationDate: '2015-07-01',
    ModificationDate: '2015-07-01',
    Reference: '[RFC-reference]',
    ServiceCode: '000000',
    KnownUnauthorizedUses: 'Unauthorized use by IANA',
    AssignmentNotes: 'Test entry'
}

Note that not all properties are necessarily present on each entry.