mirror of
https://gitlab.com/ceda_ei/better-strip-color.git
synced 2025-07-02 04:06:53 +02:00
24 lines
379 B
Markdown
24 lines
379 B
Markdown
# better-strip-color
|
|
|
|
Strip ansi colors, attributes from a string.
|
|
|
|
## Install
|
|
|
|
Install with [npm](https://www.npmjs.com/) or [pnpm](https://pnpm.js.org/)
|
|
|
|
```sh
|
|
$ npm i better-strip-color
|
|
$ pnpm i better-strip-color
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const strip = require("better-strip-color");
|
|
const strippedString = strip(ANSIString);
|
|
```
|
|
|
|
## License
|
|
|
|
Released under the LGPL-3.0 license.
|