1.0.6 • Published 8 years ago

supports-ansi v1.0.6

Weekly downloads
65
License
MIT
Repository
github
Last release
8 years ago

supports-ansi

npm version

Detect whether a terminal supports ANSI escape sequences

Installation

npm install --save supports-ansi

Usage

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

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago