npm.io
1.0.0 • Published 4 years ago

polycolors

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
5

polycolors

Yet another command-line coloring library with RGB support. You heard it right, you can specify RGB values as an input to colorizer.

Features

  • RGB support
  • Aliases for common known RGB values
  • No dependencies

Getting Started

npm install polycolors
Use an API for common colors
import { fgRed } from "polycolors";

console.log(fgRed("What's up?"));
Use an API for RGB values
import { fgColor } from "polycolors";

console.log(fgColor(255, 0, 0)("What's up?"));

Credits

License

MIT License