JSPM

polycolors

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q12361F
  • License MIT

Yet another command-line coloring library with RGB support

Package Exports

  • polycolors

Readme

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