1. strip-color
Strip ANSI color codes from a string. No dependencies.
strip-color
Package: strip-color
Created by: jonschlinkert
Last modified: Mon, 27 Jun 2022 01:12:04 GMT
Version: 0.1.0
License: MIT
Downloads: 996,598
Repository: https://github.com/jonschlinkert/strip-color

Install

npm install strip-color
yarn add strip-color

strip-color NPM version

Strip ansi characters from a string.

Install

Install with npm

 $ npm i strip-color --save

Usage

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

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

Running tests

Install dev dependencies:

 $ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.


This file was generated by verb-cli on October 18, 2015.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code