MCPcopy Create free account
hub / github.com/Effect-TS/effect / checkPort

Function checkPort

packages/effect/src/net/NetAddress.ts:1618–1618  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

1616}
1617
1618const checkPort = (port: number): boolean => Number.isInteger(port) && port >= 0 && port <= 0xffff
1619
1620/**
1621 * Creates a checked IPv4 internet address.

Callers 2

inetAddressV4Function · 0.85
inetAddressV6Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected