@types/supports-color
- Version 8.1.3
- Published
- 4.78 kB
- No dependencies
- MIT license
Install
npm i @types/supports-color
yarn add @types/supports-color
pnpm add @types/supports-color
Overview
TypeScript definitions for supports-color
Index
Variables
Functions
function supportsColor
supportsColor: ( stream: { isTTY?: boolean | undefined }, options?: supportsColor.Options) => supportsColor.SupportsColor;
Namespaces
namespace supportsColor
namespace supportsColor {}
interface Level
interface Level {}
interface Options
interface Options {}
property isTTY
isTTY?: boolean | undefined;
property sniffFlags
sniffFlags?: boolean | undefined;
By default it is
true
, which instructssupportsColor()
to sniffprocess.argv
for the multitude of--color
flags (see _Info_ below). Iffalse
, thenprocess.argv
is not considered when determining color support. true
type SupportsColor
type SupportsColor = false | Level;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/supports-color
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/supports-color)
- HTML<a href="https://www.jsdocs.io/package/@types/supports-color"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2299 ms. - Missing or incorrect documentation? Open an issue for this package.