[go: up one dir, main page]

strip-ansi
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

strip-ansi Build Status

Strip ANSI color codes

Used in the terminal color module chalk.

Install

Install locally with npm:

npm install --save strip-ansi

Or globally if you want to use it as a CLI app:

npm install --global strip-ansi

You can then use it in your Terminal like:

strip-ansi file-with-color-codes

Or pipe something to it:

ls | strip-ansi

Example

var stripAnsi = require('strip-ansi');
stripAnsi('\x1b[4mcake\x1b[0m');
//=> cake

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i strip-ansi@0.1.0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • sindresorhus
  • qix