aspnxdd / unhex

A NodeJS package to convert any RGB color to HEX color or viceversa. Also supports HSL conversion.

Home Page:https://unhex-docs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhex 🎨

A NodeJS package to convert any RGB color to HEX, HSL color or viceversa.

Example

div {
   color: #fff;
   background-color: #0070f3;
}

After running npx unhex@latest with hexToRgb direction.

div {
   color: rgb(255, 255, 255);
   background-color: rgb(0, 112, 243);
}

Want to try it? 🤔

npx unhex@latest

Features ✨

  • Parse any file on a given directory and convert any color to among HSL, HEX and RGB combinations.
  • Custom configuration to:
    • Ignore certain files, dirs...
    • Define which extensions files to parse (.css, .jsx, .scss, ...)

TO-DO 🚧

  • Support HSL.
  • Support HWB.

MIT License

About

A NodeJS package to convert any RGB color to HEX color or viceversa. Also supports HSL conversion.

https://unhex-docs.vercel.app

License:MIT License


Languages

Language:TypeScript 71.1%Language:JavaScript 26.8%Language:CSS 2.1%