@std/net
Обзор
Сетевые утилиты.
import { getAvailablePort } from "@std/net";
const command = new Deno.Command(Deno.execPath(), {
args: ["test.ts", "--port", getAvailablePort().toString()],
});
// ...
Добавление в проект
›_
deno add jsr:@std/net
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/std/net