Socket
Book a DemoInstallSign in
Socket

supports-color-cli

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supports-color-cli

Detect whether a terminal supports color

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

supports-color-cli

Detect whether a terminal supports color

Install

$ npm install --global supports-color-cli

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
  • supports-color - API for this module

Maintainers

Keywords

cli-app

FAQs

Package last updated on 16 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.