Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Cloud
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Pricing
Starts free and scales with your needs
Docs
Manual
API Reference
Deno Deploy
Deno KV
Deno by Example
Modules
Current path
deno.land/x
Standard Library
Node.js & npm
JSR
Blog
Search…
⌘K
Module
x
/
getport
/
mod.ts
>
max
Get an available TCP port
DevArtSite/getport
Version
Latest
v2.1.2
v2.1.1
2.1.0
2.0.0
1.0.0
Menu
mod.ts
(default module)
T
checkedPort
v
max
v
min
f
default
f
makeRange
f
randomPort
variable
max
import
{ max }
from
"https://deno.land/x/getport@v2.1.2/mod.ts"
;
type
65535