# pidof

> Get PID of a running process

Latest version **1.0.2** (published 2012-08-11) · 0 weekly downloads

## Install

```sh
npm install pidof
pnpm add pidof
yarn add pidof
bun add pidof
```

## 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 | 1.0.2 |
| Published | 2012-08-11 |
| First published | 2012-06-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jakob Borg |
| Maintainers | calmh |

## Links

- npm: https://www.npmjs.com/package/pidof
- Repository: https://github.com/calmh/node-pidof
- npm.io page: https://npm.io/package/pidof

## Recent versions

- 1.0.2 (latest) — 2012-08-11
- 1.0.1 — 2012-07-10
- 1.0.0 — 2012-06-16

## README

pidof
=====

[![build status](https://secure.travis-ci.org/calmh/node-pidof.png)](http://travis-ci.org/calmh/node-pidof)

Get the PID of a running process, or `null` if it couldn't be found. Tested on
Mac OS X, Solaris and Linux. Guaranteed not to work on Windows.

Example
-------

    var pidof = require('pidof');
    
    pidof('cron', function (err, pid) {
        if (err) {
            console.log('Weird error getting PIDs');
            console.log(err);
        } else {
            if (pid) {
                console.log('Found cron at pid ' + pid);
            } else {
                console.log('Seems like there\'s no cron on this system');
            }
        }
    });

License
-------

MIT

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