# refcounter

> Simple refcounter

Latest version **1.0.0** (published 2024-12-18) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-12-18 |
| First published | 2024-12-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Holepunch Inc |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/refcounter
- Repository: https://github.com/holepunchto/refcounter
- Issues: https://github.com/holepunchto/refcounter/issues
- npm.io page: https://npm.io/package/refcounter

## Recent versions

- 1.0.0 (latest) — 2024-12-18
- 0.0.0 — 2024-12-18

## README

# refcounter

Simple refcounter

```
npm install refcounter
```

## Usage

``` js
const RefCounter = require('refcounter')

const refs = new RefCounter()

refs.inc()
refs.dec()

refs.isIdle() // true is no refs
await refs.idle() // wait for no refs
```

## License

Apache-2.0

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