# bare-signals

> Native signal handling for JavaScript

Latest version **5.0.0** (published 2026-07-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-signals
pnpm add bare-signals
yarn add bare-signals
bun add bare-signals
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2026-07-07 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 526.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-signals
- Repository: https://github.com/holepunchto/bare-signals
- Homepage: https://github.com/holepunchto/bare-signals#readme
- Issues: https://github.com/holepunchto/bare-signals/issues
- npm.io page: https://npm.io/package/bare-signals

## Dependencies (1)

- [bare-events](https://npm.io/package/bare-events.md) ^2.5.3

## Recent versions

- 5.0.0 (latest) — 2026-07-07
- 4.2.0 — 2025-11-10
- 4.1.0 — 2025-10-20
- 4.0.5 — 2025-10-16
- 4.0.4 — 2025-08-21
- 4.0.3 — 2025-06-24
- 4.0.2 — 2025-03-24
- 4.0.1 — 2024-12-10
- 4.0.0 — 2024-11-26
- 3.0.2 — 2024-10-20
- 3.0.1 — 2024-09-13
- 2.2.5 — 2024-09-13
- 3.0.0 — 2024-09-11
- 2.2.4 — 2024-09-11
- 2.2.3 — 2024-08-30
- … 14 more at https://npm.io/package/bare-signals/versions

## README

# bare-signals

Native signal handling for JavaScript.

```
npm i bare-signals
```

## Usage

```js
const Signal = require('bare-signals')

const sigint = new Signal('SIGINT')

sigint.on('signal', () => console.log('SIGINT caught')).start()
```

## License

Apache-2.0

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