# @tsdotnet/disposable

> A disposable base class and minimal set of interfaces to properly implement an object disposal pattern.

Latest version **2.0.3** (published 2026-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsdotnet/disposable
pnpm add @tsdotnet/disposable
yarn add @tsdotnet/disposable
bun add @tsdotnet/disposable
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2026-03-16 |
| First published | 2020-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 39 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | electricessence |
| Maintainers | electricessence |
| Keywords | dispose, disposal, disposable, IDisposable, DisposableBase, ObjectDisposedException |

## Links

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

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1

## 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

- 2.0.3 (latest) — 2026-03-16
- 2.0.2 — 2026-03-16
- 2.0.1 — 2025-08-22
- 2.0.0 — 2025-08-22
- 1.3.5 — 2025-08-19
- 1.3.4 — 2025-08-18
- 1.3.3 — 2025-08-17
- 1.3.2 — 2025-08-17
- 1.3.1 — 2025-08-16
- 1.3.0 — 2025-08-16
- 1.2.1 — 2025-08-16
- 1.2.0 — 2025-08-16
- 1.1.24 — 2022-12-18
- 1.1.23 — 2022-02-11
- 1.1.22 — 2021-04-21
- … 21 more at https://npm.io/package/@tsdotnet/disposable/versions

## README

# ![alt text](https://avatars1.githubusercontent.com/u/64487547?s=30 "tsdotnet") tsdotnet / disposable

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/disposable/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@tsdotnet/disposable.svg?style=flat-square)](https://www.npmjs.com/package/@tsdotnet/disposable)

A disposable base class and minimal set of interfaces to properly implement an object disposal pattern.

## Docs

[tsdotnet.github.io/disposable](https://tsdotnet.github.io/disposable/)

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