# find-pid

> [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![build status][appveyor-image]][appveyor-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][

Latest version **0.1.1** (published 2017-02-08) · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2017-02-08 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | luckydrq |
| Maintainers | luckydrq |
| Keywords | find, pid, port |

## Links

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

## Dependencies (1)

- [mz](https://npm.io/package/mz.md) ^2.6.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-02-08
- 0.1.0 — 2017-02-08

## README

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![build status][appveyor-image]][appveyor-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

Cross-platform api of finding pid under specified conditions.

[npm-image]: https://img.shields.io/npm/v/find-pid.svg?style=flat-square
[npm-url]: https://npmjs.org/package/find-pid
[travis-image]: https://img.shields.io/travis/luckydrq/find-pid/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/luckydrq/find-pid
[appveyor-image]: https://ci.appveyor.com/api/projects/status/c8wxxgyd62cx1ejs?svg=true
[appveyor-url]: https://travis-ci.org/luckydrq/find-pid
[codecov-image]: https://codecov.io/gh/luckydrq/find-pid/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/luckydrq/find-pid
[david-image]: https://img.shields.io/david/luckydrq/find-pid.svg?style=flat-square
[david-url]: https://david-dm.org/luckydrq/find-pid
[snyk-image]: https://snyk.io/test/npm/find-pid/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/find-pid
[download-image]: https://img.shields.io/npm/dm/find-pid.svg?style=flat-square
[download-url]: https://npmjs.org/package/find-pid

## Install
`$ npm i find-pid`

*Note: For some linux distributions, `netstat` is not available util
you install `net-tools`, run `sudo apt-get install net-tools`.*

## Example
```js
  const findByPort = require('find-pid').byPort;
  findByPort(7777, (err, pid) => {
    console.log(pid);
  });
```

## API

- byPort(port, callback)

Find pid by port.

## Contribute
Now the only api is `byPort`, other features is not planned until i
really need it. But i am very happy to accept a PR :)

## License
MIT

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