mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
19 lines
463 B
TypeScript
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";
|