# find-port

> find an unused port in your localhost

Latest version **3.0.0** (published 2022-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install find-port
pnpm add find-port
yarn add find-port
bun add find-port
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2022-05-13 |
| First published | 2014-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Yaniv Kessler |
| Maintainers | kessler, yaniv |
| Keywords | port, scanner, portscanner, net, tcp |

## Links

- npm: https://www.npmjs.com/package/find-port
- Repository: https://github.com/kessler/find-port
- Homepage: https://github.com/kessler/find-port#readme
- Issues: https://github.com/kessler/find-port/issues
- npm.io page: https://npm.io/package/find-port

## Dependencies (1)

- [async](https://npm.io/package/async.md) ^3.2.3

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2022-05-13
- 2.0.1 — 2016-04-04
- 1.0.1 — 2015-02-11
- 1.0.0 — 2014-04-16
- 0.0.3 — 2014-01-18

## README

# find-port

find an unused port in your localhost

```js
	var findPort = require('find-port')

	// scan a range
	findPort('127.0.0.1', 8000, 8003, function(ports) {
		console.log(ports)
	})

	// scan explicitly
	findPort('127.0.0.1', [8000, 8011], function(ports) {
		console.log(ports)
	})
```

- Since version 2.0.0 a local interface must be specified
- This module is not designed to scan remote ports only local ones.

---
_Source: https://npm.io/package/find-port · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
