Skip to content

dunosaurs/supports_color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supports_color

A deno port of chalk's excellent supports-color library

Usage

import supportsColor, {
  createSupportsColor,
} from "https://deno.land/x/supports_color/mod.ts";

// Automatically check stdout
console.log(supportsColor.stdout);
console.log(supportsColor.stderr);

// Check supports color at arbitrary part of runtime
console.log(createSupportsColor(Deno.stdout));