1.0.0 • Published 2 years ago

color-codes-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

color-codes-cli

Fetch color codes of all formats based on specified single code

Install

npm install --global color-codes-cli

Usage

color-codes --hex 14E71D

Output

hexResponse {
  hex: '#14E71D',
  rgb: 'rgb(20, 231, 29)',
  hsl: 'hsl(123, 84%, 49%)',
  hsv: 'hsv(123, 91%, 91%)',
  cmyk: 'cmyk(91, 0, 87, 9)',
  name: 'Malachite',
  closest_named_hex: '#0BDA51'
}

Params

ArgsDefault valueDescriptionExample
--hex-six digit hex code value--hex 14E71D
--rgb[]rgb color code spearated by spaces--rgb 20 231 29

API

The Color API

Authors

Mohan Kumar Sagadevan - GitHub

License

MIT