# local-port

> Find open or closed local port within a range

Latest version **0.0.2** (published 2014-05-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-05-24 |
| First published | 2014-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | soyuka |
| Maintainers | soyuka |
| Keywords | port, local, open, close |

## Links

- npm: https://www.npmjs.com/package/local-port
- Repository: https://github.com/soyuka/local-port
- Issues: https://github.com/soyuka/local-port/issues
- npm.io page: https://npm.io/package/local-port

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-05-24
- 0.0.1 — 2014-05-24

## README

local-port [![Build Status](https://travis-ci.org/soyuka/local-port.svg)](https://travis-ci.org/soyuka/local-port)
==========

Find open or closed local port within a range

## Usage 
```
	require('local-port').findOpen(3001, function(err, port) {
		if(err)
			console.error(err);

	    console.log(port)
	})
```

## API

`findOpen(start, [end,] callback)` 
`findClose(start, [end,] callback)` 
`isPortTaken(port, callback)` => `callback(err, taken)`

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