Package Exports
- color-util-nodejs
- color-util-nodejs/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-util-nodejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🎨 NodeJS color utils
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.
⚙️ Usage
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.
📚 Contribution
If you want to contribute to this project, feel free to choose an issue and create a pull request.
🤷♀️ Support
If you need help with this library, check out our Discord server for help!
⚖️ License
This project is licensed under the Apache 2.0 license.