# strip-color

> Strip ANSI color codes from a string. No dependencies.

Latest version **0.1.0** (published 2015-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install strip-color
pnpm add strip-color
yarn add strip-color
bun add strip-color
```

## Health

**Score 23/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-18 |
| First published | 2015-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/strip-color) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | ansi, chalk, cli, codes, color, colors, colour, colours, command, command-line, console, escape, format, formatting, log, logging, match, pattern, re, regex, regexp, regular-expression, remove, rgb, shell, string, strip, style, styles, styling, terminal, text, trim, tty, xterm |

## Links

- npm: https://www.npmjs.com/package/strip-color
- Repository: https://github.com/jonschlinkert/strip-color
- Issues: https://github.com/jonschlinkert/strip-color/issues
- npm.io page: https://npm.io/package/strip-color

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-10-18

## README

# strip-color [![NPM version](https://badge.fury.io/js/strip-color.svg)](http://badge.fury.io/js/strip-color)

> Strip ansi characters from a string.

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i strip-color --save
```

## Usage

```js
var strip = require('strip-color');
var red = require('ansi-red');
var str = red('abc');

console.log(strip(str));
//=> 'abc';
```

## Related projects

* [ansi-bold](https://www.npmjs.com/package/ansi-bold): The color bold, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-bold)
* [ansi-cyan](https://www.npmjs.com/package/ansi-cyan): The color cyan, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-cyan)
* [ansi-red](https://www.npmjs.com/package/ansi-red): The color red, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-red)
* [ansi-yellow](https://www.npmjs.com/package/ansi-yellow): The color yellow, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-yellow)
* [wrap-ansi](https://www.npmjs.com/package/wrap-ansi): Wordwrap a string with ANSI escape codes | [homepage](https://github.com/chalk/wrap-ansi)

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/strip-color/issues/new).

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 18, 2015._

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