Giter Club home page Giter Club logo

Comments (7)

meodai avatar meodai commented on June 3, 2024 1

@MordechaiHadad by the way you can also use the rest API so you don't have to carry a huge file in your codebase:


https://api.color.pizza/v1/?values=ff0000,ff0000&list=bestOf&noduplicates=true

https://github.com/meodai/color-name-api

from color-names.

meodai avatar meodai commented on June 3, 2024

from color-names.

MordechaiHadad avatar MordechaiHadad commented on June 3, 2024

I did the result was:

Object { colorNameList: (30241) […] }
​
colorNameList: Array(30241) [ {…}, {…}, {…}, … ]
​
<prototype>: Object { … }

from color-names.

meodai avatar meodai commented on June 3, 2024

Objects don't have a find method. You can a) import it property by using

import { colorNameList } from 'color-name-list';

or use

namedColors.colorNameList.find(...)

from color-names.

MordechaiHadad avatar MordechaiHadad commented on June 3, 2024

Objects don't have a find method. You can a) import it property by using

import { colorNameList } from 'color-name-list';

or use

namedColors.colorNameList.find(...)

I suggest you update the readme then, not very clear regarding what needs to be imported.
Specifically: https://github.com/meodai/color-names#exact-color

from color-names.

meodai avatar meodai commented on June 3, 2024

@MordechaiHadad ca8f60c

from color-names.

github-actions avatar github-actions commented on June 3, 2024

🎉 This issue has been resolved in version 10.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from color-names.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.