Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deep-codes/convert-colorcodes
A simple Hex to RGB, CMYK, HSL converter. It just works!
https://github.com/deep-codes/convert-colorcodes
cmyk-colors color-converter colors hexcode hsl-color npm rgb-color
Last synced: 13 days ago
JSON representation
A simple Hex to RGB, CMYK, HSL converter. It just works!
- Host: GitHub
- URL: https://github.com/deep-codes/convert-colorcodes
- Owner: Deep-Codes
- Created: 2020-10-10T16:35:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-12T15:09:55.000Z (about 4 years ago)
- Last Synced: 2024-10-02T18:47:50.088Z (about 1 month ago)
- Topics: cmyk-colors, color-converter, colors, hexcode, hsl-color, npm, rgb-color
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/convert-colorcodes
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Color Code Conversions
npm install
```bash
npm i convert-colorcodes
``````javascript
const {hexToHSL , hexToRGB, hexToCMYK} = require('convert-colorcodes')console.log(hexToRGB('#1e1e1e'))
console.log(hexToHSL('#1e1e1e'))
console.log(hexToCMYK('#1e1e1e'))// rgb(30,30,30)
// hsl(0,0%,12%)
// cmyk(0,0,0,0.88)```