# ansi-purge

> A tiny function for deleting ANSI escape sequences from a string.

Latest version **1.1.0** (published 2025-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ansi-purge
pnpm add ansi-purge
yarn add ansi-purge
bun add ansi-purge
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2025-08-22 |
| First published | 2023-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | fabiospampinato |
| Keywords | ansi, strip, purge |

## Links

- npm: https://www.npmjs.com/package/ansi-purge
- Repository: https://github.com/fabiospampinato/ansi-purge
- Homepage: https://github.com/fabiospampinato/ansi-purge#readme
- Issues: https://github.com/fabiospampinato/ansi-purge/issues
- npm.io page: https://npm.io/package/ansi-purge

## Recent versions

- 1.1.0 (latest) — 2025-08-22
- 1.0.1 — 2025-01-11
- 1.0.0 — 2023-02-11

## README

# ANSI Purge

A tiny function for deleting ANSI escape sequences from a string.

## Install

```sh
npm install ansi-purge
```

## Usage

```ts
import color from 'tiny-colors';
import ansiPurge from 'ansi-purge';

// Let's remove ANSI escapes from a string

console.log ( ansiPurge ( color.red ( 'Hello' ) ) ); // => 'Hello'
```

## License

MIT © Fabio Spampinato

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