Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

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
14,254,447
decreased by-12.16%

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 11,481,954 weekly downloads. As such, has-ansi popularity was classified as popular.

Is has-ansi well maintained?

We found that has-ansi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 13 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

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