color-name-list
Advanced tools
Comparing version 10.19.0 to 10.20.0
@@ -34,2 +34,3 @@ # Contributing | ||
(plants and animals ;) ) ex. `Venus Slipper Orchid` instead of `Paphiopedilum`. | ||
- Avoid ethnic & racial assumptions | ||
@@ -42,5 +43,5 @@ ## Git | ||
- Write your commit messages in imperative form: | ||
**feat(colors): Adds fantastic new colors names.** rather then | ||
**feat(colors): Add fantastic new colors names.** rather then | ||
feat(colors): Added new names. | ||
- Make sure to run `npm run build` before commiting. (No need to `npm ci` the | ||
- Make sure to run `npm run build` before committing. (No need to `npm ci` the | ||
dependencies are only needed if you need to run the API) | ||
@@ -47,0 +48,0 @@ |
{ | ||
"name": "color-name-list", | ||
"version": "10.19.0", | ||
"version": "10.20.0", | ||
"description": "long list of color names", | ||
@@ -56,3 +56,13 @@ "main": "dist/colornames.json", | ||
}, | ||
"dependencies": {} | ||
"dependencies": {}, | ||
"funding": [ | ||
{ | ||
"type": "ko-fi", | ||
"url": "https://ko-fi.com/colorparrot" | ||
}, | ||
{ | ||
"type": "github-sponsors", | ||
"url": "https://github.com/sponsors/meodai" | ||
} | ||
] | ||
} |
@@ -9,6 +9,6 @@ <img align="left" height="119" width="119" src="https://meodai.github.io/color-names/logo/cockatoo-fill.svg"> | ||
[![npm](https://img.shields.io/npm/dt/color-name-list.svg)](https://www.npmjs.com/package/color-name-list) | ||
[![name count](https://img.shields.io/badge/__30241__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv) | ||
[![name count](https://img.shields.io/badge/__30245__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv) | ||
[![github sponsor count](https://img.shields.io/github/sponsors/meodai)](https://github.com/sponsors/meodai) | ||
A handpicked list of __30241__ unique color names from | ||
A handpicked list of __30245__ unique color names from | ||
[various sources](#sources-) and thousands of curated user submissions. | ||
@@ -58,3 +58,3 @@ | ||
## Color Count: __30241__ ๐ | ||
## Color Count: __30245__ ๐ | ||
@@ -140,8 +140,8 @@ ~__0.18%__ of the RGB color space | ||
```javascript | ||
import namedColors from 'color-name-list'; | ||
import { colorNameList } from 'color-name-list'; | ||
let someColor = namedColors.find(color => color.hex === '#ffffff'); | ||
let someColor = colorNameList.find(color => color.hex === '#ffffff'); | ||
console.log(someColor.name); // => white | ||
let someNamedColor = namedColors.find(color => color.name === 'Eigengrau') | ||
let someNamedColor = colorNameList.find(color => color.name === 'Eigengrau') | ||
console.log(someColor.hex); // => #16161d | ||
@@ -157,3 +157,3 @@ ``` | ||
import nearestColor from 'nearest-color'; | ||
import colorNameList from 'color-name-list'; | ||
import { colorNameList } from 'color-name-list'; | ||
@@ -160,0 +160,0 @@ // nearestColor need objects {name => hex} as input |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31429
2
17981889