Skip to main content
Home
This release is 6 versions behind 1.0.6 — the latest version of @std/net. Jump to latest

@std/net@1.0.0-rc.2
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score94%
Downloads4,453/wk
Published2 years ago (1.0.0-rc.2)

Utilities for working with the network

Network utilities.

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()],
});

// ...
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/net

Import symbol

import * as net from "@std/net";
or

Import directly with a jsr specifier

import * as net from "jsr:@std/net";

Add Package

bunx jsr add @std/net

Import symbol

import * as net from "@std/net";