npm.io
1.2.0 • Published 4 years ago

btss

Licence
MIT
Version
1.2.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

BTSS

Basic Terminal String Styling in <5kb

install - npm i btss

Text decorations

example -

import { grey } from "btss";
grey("this text will be grey");
  1. reset
  2. bold
  3. grey
  4. underline
  5. blink
  6. reverse
  7. hidden
Colors

these colors can be used as font color or background color example -

import { red, bgred } from "btss";

// red font color
red("text");

// red background color
bgred("text");
  1. black
  2. red
  3. green
  4. yellow
  5. blue
  6. magenta
  7. cyan
  8. white
  9. crimson

Keywords