Skip to main content
Home

@std/net@1.0.4
Built and signed on GitHub Actions

Utilities for working with the network

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 Score
94%
Published
10 months ago (1.0.4)
interface GetAvailablePortOptions

Options for getAvailablePort.

Properties

optional
preferredPort: number = 0

A port to check availability of first. If the port isn't available, fall back to another port.

Defaults to port 0, which will let the operating system choose an available port.

New Ticket: 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 { type GetAvailablePortOptions } from "@std/net/get-available-port";
or

Import directly with a jsr specifier

import { type GetAvailablePortOptions } from "jsr:@std/net/get-available-port";

Add Package

bunx jsr add @std/net

Import symbol

import { type GetAvailablePortOptions } from "@std/net/get-available-port";