2024-01-01 21:11:32 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-12-04 04:50:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Network utilities.
|
|
|
|
*
|
2024-09-19 23:29:31 +00:00
|
|
|
* ```ts no-assert ignore
|
2024-09-12 04:05:40 +00:00
|
|
|
* import { getAvailablePort } from "@std/net";
|
2024-06-07 03:54:15 +00:00
|
|
|
*
|
2024-07-09 11:19:51 +00:00
|
|
|
* const command = new Deno.Command(Deno.execPath(), {
|
|
|
|
* args: ["test.ts", "--port", getAvailablePort().toString()],
|
|
|
|
* });
|
|
|
|
*
|
|
|
|
* // ...
|
2024-06-07 03:54:15 +00:00
|
|
|
* ```
|
|
|
|
*
|
2023-12-04 04:50:40 +00:00
|
|
|
* @module
|
|
|
|
*/
|
|
|
|
|
|
|
|
export * from "./get_available_port.ts";
|