Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (29 loc) · 718 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 718 Bytes

Adds shortened names to ascii-colors

Original New!
black bl
red r
green g
yellow y
blue b
magenta m
cyan c
white w
bgBlack bgBl
bgRed bgR
bgGreen bgG
bgYellow bgY
bgBlue bgB
bgMagenta bgM
bgCyan bgC
bgWhite bgW
bgGray bgGr
bgGrey bgGr

Example

const shorten = require("ansi-color-shortener");
const c = require("ansi-colors");
shorten(c);

Note: For some weird reason, `const c = require("ansi-color-shortener")(require("ansi-colors")) does not work. Sorry for the inconvience.