Skip to content

chalk/supports-color-cli

Repository files navigation

Image for: Repository files navigation

supports-color-cli

Detect whether a terminal supports color

Install

Image for: Install
$ npm install --global supports-color-cli

Usage

Image for: Usage
$ supports-color --help

  Usage
    $ supports-color

  Options
    --256  Check for 256 color support
    --16m  Check for 16 million color support

  Examples
    $ supports-color
    $ supports-color --256
    $ supports-color --16m

  Exits with code 0 if color is supported and 1 if not

Related

Image for: Related

Maintainers

Image for: Maintainers

About

Image for: About

Detect whether a terminal supports color

Resources

License

Stars

Watchers

Forks

Sponsor this project

Image for: Sponsor this project
  •  
  •  

Packages

Image for: Packages 0
No packages published

Contributors 3

Image for: Contributors 3
  •  
  •  
  •