Skip to content

mohankumar27/color-codes-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Args Default value Description Example
--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