BP Color Library is a lightweight and straightforward utility for developers to fetch color names by providing HEX color codes. Simplify your design and development workflows with this easy-to-use library.
- Lightweight: Designed to be fast and minimal.
- Flexible: Works seamlessly with JavaScript and modern frameworks.
- Useful: Ideal for design systems, educational tools, or any project dealing with colors.
const { getColorName } = require('bp-color-library');
For testing
console.log(getColorName('#add8e6'));
- Parameters: hex (string): A valid HEX color code (e.g., #FF5733).
- Returns: string: The corresponding color name, or "Unknown color" if the HEX code is not recognized.
- Fork the repository.
- Create a new branch (feature/my-new-feature).
- Commit your changes (git commit -am 'Add some feature').
- Push your branch (git push origin feature/my-new-feature).
- Create a pull request to the main repository.
- Giving the repository a ⭐ on GitHub.
- Sharing it with your friends and colleagues.
- Providing feedback or reporting issues to help us improve.
- Sponsor me on GitHub
If you'd like to support my work, you can sponsor me on GitHub:
Sponsor Bhathiya Prasad on GitHub - If you enjoy my work, consider buying me a coffee to show your support: Buy Me a Coffee
BP Color Library GitHub Repository
If you have any questions, suggestions, or feedback, feel free to reach out:
- Open an issue on GitHub: GitHub Issues
- Contact the author: Bhathiya Prasad