On this page
@std/net
Overview Jump to heading
Network utilities.
import { getAvailablePort } from "@std/net";
const command = new Deno.Command(Deno.execPath(), {
args: ["test.ts", "--port", getAvailablePort().toString()],
});
// ...
Add to your project Jump to heading
deno add jsr:@std/net