has-ansi

WebJar for has-ansi

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

has-ansi
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

has-ansi
WebJar for has-ansi
Project URL

Project URL

http://webjars.org

Download has-ansi

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/has-ansi/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>has-ansi</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/has-ansi/
implementation 'org.webjars.npm:has-ansi:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/has-ansi/
implementation ("org.webjars.npm:has-ansi:2.0.0")
'org.webjars.npm:has-ansi:jar:2.0.0'
<dependency org="org.webjars.npm" name="has-ansi" rev="2.0.0">
  <artifact name="has-ansi" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='has-ansi', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "has-ansi" % "2.0.0"
[org.webjars.npm/has-ansi "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : ansi-regex jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

has-ansi

Check if a string has ANSI escape codes

Install

$ npm install has-ansi

Usage

const hasAnsi = require('has-ansi');

hasAnsi('\u001B[4mUnicorn\u001B[0m');
//=> true

hasAnsi('cake');
//=> false

Related

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.
org.webjars.npm

chalk

Terminal string styling done right

Versions

Version
2.0.0
1.0.3
0.1.0