std/net/mod.ts
2024-06-07 15:54:15 +12:00

19 lines
463 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
/**
* Network utilities.
*
* ```ts no-assert no-eval
* import { getNetworkAddress, getAvailablePort } from "@std/net";
*
* console.log(`My network IP address is ${getNetworkAddress()}`);
*
* Deno.serve({ port: getAvailablePort() }, () => new Response("Hello, world!"));
* ```
*
* @module
*/
export * from "./get_available_port.ts";
export * from "./get_network_address.ts";