Skip to content

A small javascript library that finds an exact or similar color name.

License

Notifications You must be signed in to change notification settings

shariati/cherangi

Repository files navigation

Cherangi

npm version Known Vulnerabilities

⚠️ Discontinued - Please Use color-names Instead

This project has been discontinued in favor of color-names, which provides all the features of Cherangi and much more:

  • Larger Color Database: Over 30,000 unique color names
  • Multiple Language Support: Java, Kotlin, C#, and JavaScript
  • Free Public REST API: Easy to integrate with any platform
  • Better Color Matching: More accurate color-to-name mapping
  • Regular Updates: Actively maintained and frequently updated
  • Multiple Format Support: JSON, CSV, YML, XML, HTML, SCSS
  • CDN Available: For quick integration
  • Well Documented: Comprehensive documentation and examples

Migration Guide

To migrate from Cherangi to color-names, please visit: color-names Documentation

Quick Start with color-names

// Install
npm install color-name-list

// Usage
import { colornames } from 'color-name-list';

// Find exact color
const color = colornames.find(color => color.hex === '#ffffff');
console.log(color.name); // => white

// Find closest color using their API
// https://api.color.pizza/v1/?values=00f,f00,f00

Historical Information

Cherangi (چه رنگی) means "What color?" in Farsi (Persian). This project was created to help developers find color names programmatically, but has since been superseded by the more comprehensive color-names project.

Thanks

Special thanks to all contributors and users who supported this project. For continued color naming needs, please support the color-names project.

License

MIT © Amin Shariati

About

A small javascript library that finds an exact or similar color name.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published