Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/net/mod.ts>joinHostPort

js library written with ts, use select and chan like golang in js.
Latest
function joinHostPort
import { joinHostPort } from "https://deno.land/x/easyts@0.1.3/net/mod.ts";

combines host and port into a network address of the form "host:port". If host contains a colon, as found in literal IPv6 addresses, then JoinHostPort returns "[host]:port".

Parameters

host: string
port: string | number

Returns

string