Hey there! This library an adapted NodeJS version of our color utils library for Deno. If you encounter any issues, feel free to report them on our Discord or open an issue on GitHub directly.
To use this library in your project, you'll need to import the node module. To do so, use this command:
npm i color-util-nodejs
Here is a quick example of how to convert a hex color to a RGB color in TypeScript:
import { hex, RGBColor } from 'color-util-nodejs';
const rgbColor: RGBColor = hex('#ff0000').toRGB();
console.log(rgbColor.toString()); // => rgb(255, 0, 0)
You can find more examples in the examples directory.
If you want to contribute to this project, feel free to choose an issue and create a pull request.
If you need help with this library, check out our Discord server for help!
This project is licensed under the Apache 2.0 license.