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

Function inetAddressFromIpStringUnsafe

packages/effect/src/net/NetAddress.ts:1714–1715  ·  view source on GitHub ↗
(address: string, port: number)

Source from the content-addressed store, hash-verified

1712 * @since 4.0.0
1713 */
1714export const inetAddressFromIpStringUnsafe = (address: string, port: number): InetAddress =>
1715 Result.getOrThrow(inetAddressFromIpString(address, port))
1716
1717/**
1718 * Creates an internet address from a trusted native numeric host and port.

Callers

nothing calls this directly

Calls 1

inetAddressFromIpStringFunction · 0.85

Tested by

no test coverage detected