Skip to content

axetroy/deno_free_port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

get free port for Deno

// Requires `--allow-net` flag
import {
  isFreePort,
  getFreePort,
} from 'https://deno.land/x/[email protected]/mod.ts'

// if port 3000 is available. then return or return a random port
console.log(await getFreePort(3000)) // 3000 or random port
console.log(await isFreePort(3000)) // true or false

License

The MIT License

About

Get free port for Deno

Resources

License

Stars

Watchers

Forks

Packages

No packages published