JSPM

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

Strip ANSI escape codes

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

Install

$ npm install --save strip-ansi

Usage

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

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

CLI

$ npm install --global strip-ansi
$ strip-ansi --help

Usage
  $ strip-ansi <input-file> > <output-file>
  $ cat <input-file> | strip-ansi > <output-file>

Example
  $ strip-ansi unicorn.txt > unicorn-stripped.txt

License

MIT © Sindre Sorhus