( address: string, port: number )
| 1693 | * @since 4.0.0 |
| 1694 | */ |
| 1695 | export const inetAddressFromIpString = ( |
| 1696 | address: string, |
| 1697 | port: number |
| 1698 | ): Result.Result<InetAddress, NetAddressError> => { |
| 1699 | return Result.flatMap(ipFromString(address), (address) => inetAddress(address, port)) |
| 1700 | } |
| 1701 | |
| 1702 | /** |
| 1703 | * Creates an internet address from a trusted numeric IP string and port. |
no test coverage detected