# remove-unprintable

> Return a new string with all unprintable characters removed

Latest version **2.0.2** (published 2025-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install remove-unprintable
pnpm add remove-unprintable
yarn add remove-unprintable
bun add remove-unprintable
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2025-02-12 |
| First published | 2013-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | David Björklund |
| Maintainers | kesla |
| Keywords | string, cleanup, ascii, unprintable, characters |

## Links

- npm: https://www.npmjs.com/package/remove-unprintable
- Repository: https://github.com/kesla/remove-unprintable
- Homepage: https://github.com/kesla/remove-unprintable#readme
- Issues: https://github.com/kesla/remove-unprintable/issues
- npm.io page: https://npm.io/package/remove-unprintable

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 2.0.2 (latest) — 2025-02-12
- 2.0.1 — 2025-02-12
- 2.0.0 — 2018-04-02
- 1.0.1 — 2015-05-30
- 1.0.0 — 2015-05-21
- 0.1.4 — 2013-04-21
- 0.1.3 — 2013-04-21
- 0.1.2 — 2013-01-23
- 0.1.1 — 2013-01-23
- 0.1.0 — 2013-01-23
- 0.0.0 — 2013-01-23

## README

#remove-unprintable

Small npm module to remove all unprintable characters from a string

## installation

```sh
	npm install remove-unprintable
	yarn add remove-unprintable
```

## example/usage

```javascript
var removeUnprintable = require("remove-unprintable");

var str = "\u0000foo";
console.log(removeUnprintable(str) === "foo"); // will print true;
```

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