JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 187475132
  • Score
    100M100P100Q350336F
  • License MIT

Strip ANSI escape codes (used for colorizing strings in the terminal)

Package Exports

  • strip-ansi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strip-ansi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

strip-ansi Build Status

Strip ANSI escape codes (used for colorizing strings in the terminal)

Used in the terminal color module chalk.

Install

$ npm install --save strip-ansi

Usage

var stripAnsi = require('strip-ansi');

stripAnsi('\x1b[4mcake\x1b[0m');
//=> 'cake'

CLI

You can also use it as a CLI app by installing it globally:

$ npm install --global strip-ansi

Usage

$ strip-ansi --help

strip-ansi <input-file>
or
cat <input-file> | strip-ansi

License

MIT © Sindre Sorhus