Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

strip-ansi

Package Overview
Dependencies
1
Maintainers
2
Versions
19
Issues
File Explorer

Advanced tools

strip-ansi

Strip ANSI escape codes from a string

    7.0.1latest
    GitHub
    npm

Version published
Maintainers
2
Weekly downloads
127,082,385
decreased by-6.1%

Weekly downloads

Readme

Source

strip-ansi

Strip ANSI escape codes from a string

Install

$ npm install strip-ansi

Usage

import stripAnsi from '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.

  • strip-ansi-cli - CLI for this module
  • strip-ansi-stream - Streaming version of this module
  • has-ansi - Check if a string has ANSI escape codes
  • ansi-regex - Regular expression for matching ANSI escape codes
  • chalk - Terminal string styling done right

Maintainers

Keywords

FAQs

Last updated on 11 Sep 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc