# supports-ansi

> Detect whether a terminal supports ANSI escape sequences

Latest version **1.0.6** (published 2018-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install supports-ansi
pnpm add supports-ansi
yarn add supports-ansi
bun add supports-ansi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2018-02-26 |
| First published | 2018-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | keqingrong |
| Maintainers | dearke |
| Keywords | ansi, conemu, console, escape, mingw, msys, process, terminal, windows |

## Links

- npm: https://www.npmjs.com/package/supports-ansi
- Repository: https://github.com/keqingrong/supports-ansi
- Homepage: https://github.com/keqingrong/supports-ansi#readme
- Issues: https://github.com/keqingrong/supports-ansi/issues
- npm.io page: https://npm.io/package/supports-ansi

## Dependencies (1)

- [is-mingw](https://npm.io/package/is-mingw.md) ^2.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2018-02-26
- 1.0.5 — 2018-02-25
- 1.0.4 — 2018-02-24
- 1.0.3 — 2018-02-21
- 1.0.2 — 2018-02-21
- 1.0.1 — 2018-02-21
- 1.0.0 — 2018-02-14
- 0.0.2 — 2018-02-14
- 0.0.1 — 2018-02-14

## README

# supports-ansi

[![npm version](https://img.shields.io/npm/v/supports-ansi.svg)](https://www.npmjs.com/package/supports-ansi)

> Detect whether a terminal supports [ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code)

## Installation

```sh
npm install --save supports-ansi
```

## Usage

```js
const supportsAnsi = require('supports-ansi');

// on ANSI/VT100 compatible terminal
console.log(supportsAnsi);
// => true

// on CMD/PowerShell (before Windows 10 v.1607)
console.log(supportsAnsi);
// => false
```

## Note

Cygwin is not supported.

## License

MIT

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