std/net/mod.ts
Asher Gomez e13bca6f67
docs(net): update docs for getAvailablePort() (#5366)
* docs(net): update docs for `getAvailablePort()`

* fix

* fix
2024-07-09 21:19:51 +10:00

23 lines
520 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()}`);
*
* const command = new Deno.Command(Deno.execPath(), {
* args: ["test.ts", "--port", getAvailablePort().toString()],
* });
*
* // ...
* ```
*
* @module
*/
export * from "./get_available_port.ts";
export * from "./get_network_address.ts";