strip-ansi
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

strip-ansi

Strip ANSI escape codes from a string

5.2.0  •  Updated 1 years ago  •  by chalk  •  MIT License

Strip ANSI escape codes from a string


Get professional support for 'strip-ansi' with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

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'

Security

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Related

Maintainers

License

MIT

Popularity

Weekly Downloads
31.2M
Stars
222

Maintenance

Development

Last ver 1 year ago
Created 6 years ago
Last commit 5 months ago
1 month between commits

Technology

Node version: 8.15.0
4.2K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

11 contributors
Sindre Sorhus
Maintainer, 43 commits, 6 merges
Benjamin White
4 commits
Ryan Graham
2 commits, 1 PRs
Works at IBM
Kevin Martensson
2 commits, 1 PRs
Works at imagemin yeoman
LitoMore
2 commits, 2 PRs
Works at grab fanfou yeoman
Joshua Boy Nicolai Appelman
2 commits
Works at Google

Tags

strip
trim
remove
ansi
styles
color
colour
colors
terminal
console
string
tty
escape
formatting
rgb
256
shell
xterm
log
logging
command-line
text
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.