Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

has-ansi

Package Overview
Dependencies
1
Maintainers
2
Versions
11
Issues
File Explorer

Advanced tools

has-ansi

Check if a string has ANSI escape codes

    5.0.1latest

Version published
Maintainers
2
Weekly downloads
16,086,198
increased by0.6%

Weekly downloads

Changelog

Source

  • Upgrade dependencies 3e26beb

https://github.com/chalk/has-ansi/compare/v5.0.0...v5.0.1

Readme

Source

has-ansi

Check if a string has ANSI escape codes

Install

$ npm install has-ansi

Usage

import hasAnsi from 'has-ansi'; hasAnsi('\u001B[4mUnicorn\u001B[0m'); //=> true hasAnsi('cake'); //=> false

Maintainers


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

Keywords

FAQs

What is has-ansi?

Check if a string has ANSI escape codes

Is has-ansi popular?

The npm package has-ansi receives a total of 13,182,811 weekly downloads. As such, has-ansi popularity was classified as popular.

Is has-ansi well maintained?

We found that has-ansi demonstrated a healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.

Last updated on 13 Sep 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc