mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
e13bca6f67
* docs(net): update docs for `getAvailablePort()` * fix * fix
23 lines
520 B
TypeScript
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";
|