strip-ansi
Strip ANSI escape codes from a string
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm
$ cnpm install strip-ansi 
SYNC missed versions from official npm registry.

strip-ansi Build Status

Strip ANSI escape codes from a string

Install

$ npm install strip-ansi

Usage

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

stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'

stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'

strip-ansi for enterprise

Available as part of the Tidelift Subscription.

The maintainers of strip-ansi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Related

Maintainers

Current Tags

  • 7.1.0                                ...           latest (2 years ago)

14 Versions

  • 7.1.0                                ...           2 years ago
  • 0.2.2                                ...           11 years ago
  • 6.0.1                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 1.0.0                                ...           11 years ago
  • 0.1.1                                ...           12 years ago
  • 5.0.0                                ...           7 years ago
  • 2.0.1                                ...           11 years ago
  • 0.3.0                                ...           11 years ago
  • 6.0.0                                ...           6 years ago
  • 4.0.0                                ...           8 years ago
  • 5.2.0                                ...           6 years ago
  • 3.0.1                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org