# @cimo/pid

> Process id. Light, fast and secure.

Latest version **1.1.32** (published 2026-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cimo/pid
pnpm add @cimo/pid
yarn add @cimo/pid
bun add @cimo/pid
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.32 |
| Published | 2026-09-17 |
| First published | 2023-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | cimo |
| Maintainers | cimo |
| Keywords | PID, process, nodejs, typescript, cimo, native, no dependencies |

## Links

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

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.32 (latest) — 2026-09-17
- 1.1.31 — 2026-08-06
- 1.1.30 — 2026-06-25
- 1.1.29 — 2026-06-08
- 1.1.28 — 2026-05-29
- 1.1.27 — 2026-05-28
- 1.1.26 — 2026-05-28
- 1.1.25 — 2026-04-08
- 1.1.23 — 2026-03-09
- 1.1.22 — 2026-02-15
- 1.1.21 — 2026-02-11
- 1.1.20 — 2025-12-12
- 1.1.19 — 2025-12-09
- 1.1.18 — 2025-12-05
- 1.1.17 — 2025-11-20
- … 17 more at https://npm.io/package/@cimo/pid/versions

## README

# Npm_pid
Npm package, process id. Light, fast and secure.
Writed with native Typescript code and no dependencies are used.

## Pack
1. npm run build
2. Copy the file "/build/package_name-x.x.x.tgz" in the project root folder.
3. In the "package.json" file insert: "@cimo/package_name": "file:package_name-x.x.x.tgz"

## Publish
1. npm run build
2. npm login --auth-type=legacy
3. npm publish --auth-type=legacy --access public

## Installation
1. Link for npm package -> https://www.npmjs.com/package/@cimo/pid

## Reset
1. Delete this from the root:
    - dist
    - node_modules
    - package-lock.json

## Server
- Server.ts
```
...

import { Cp } from "@cimo/pid/dist/src/Main";

// Source
import * as ControllerTest from "../controller/Test";

...

const cp = new Cp();

ControllerTest.execute(cp);

...
```

- ControllerTest.ts
```
...

import { Cp } from "@cimo/pid/dist/src/Main";

...

export const execute = (cp: Cp) => {
    cp.add("api", "", 0, (pidIsRunning, pidKey) => {
        if (!pidIsRunning) {
            cp.update(pidKey, "");

            ...

            cp.delete(pidKey);

            // Action completed.
        } else {
            // Another action still running.
        }
    });
};

...
```

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