Socket
Book a DemoInstallSign in
Socket

named-port

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

named-port

Deterministically map service names to port numbers

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

named-port

Deterministically map service names to port numbers (1024,65535).

Usage

$ npx named-port Filecoin Station Core
7834
import namedPort from 'named-port'

console.log(namedPort('Filecoin Station Core'))

Algorithm

port = min + H(name) % (max - min)

FAQs

Package last updated on 11 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts