# @types/has-ansi

> TypeScript definitions for has-ansi

Latest version **5.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/has-ansi
pnpm add @types/has-ansi
yarn add @types/has-ansi
bun add @types/has-ansi
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2023-11-07 |
| First published | 2017-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/has-ansi
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has-ansi
- npm.io page: https://npm.io/package/@types/has-ansi

## Recent versions

- 5.0.2 (latest) — 2023-11-07
- 5.0.0 (ts3.5) — 2021-04-26
- 3.0.0 (ts2.0) — 2017-08-14
- 5.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/has-ansi`

# Summary
This package contains type definitions for has-ansi (https://github.com/chalk/has-ansi#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has-ansi.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has-ansi/index.d.ts)
````ts
/**
 * Check if a string has ANSI escape codes
 */
declare function hasAnsi(input: string): boolean;

export default hasAnsi;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/has-ansi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
