color-name-list
Advanced tools
Comparing version 10.0.1 to 10.1.0
{ | ||
"name": "color-name-list", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "long list of color names", | ||
@@ -5,0 +5,0 @@ "main": "dist/colornames.json", |
<img align="left" height="119" width="119" src="https://meodai.github.io/color-names/logo/cockatoo-fill.svg"> | ||
# handpicked color names | ||
# Color Names | ||
@@ -9,5 +9,6 @@ [![Actions Status](https://github.com/meodai/color-names/workflows/Build%20CI/badge.svg)](https://github.com/meodai/color-names/actions) | ||
[![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/__30000__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv) | ||
[![name count](https://img.shields.io/badge/__30013__-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 __30000__ unique color names from | ||
A handpicked list of __30013__ unique color names from | ||
[various sources](#sources-) and thousands of curated user submissions. | ||
@@ -57,3 +58,3 @@ | ||
## Color Count: __30000__ ๐ | ||
## Color Count: __30013__ ๐ | ||
@@ -76,2 +77,5 @@ ~__0.18%__ of the RGB color space | ||
__Size Warning (1.14 MB)__: If you are doing this in the browser, | ||
consider using the [public rest API](#api-) | ||
```shell | ||
@@ -131,2 +135,5 @@ npm install color-name-list --save | ||
__Size Warning (1.14 MB)__: If you are doing this in the browser, | ||
consider using the [public rest API](#api-) | ||
#### Exact Color | ||
@@ -162,8 +169,5 @@ | ||
Alternative package: [ktree](https://github.com/caub/ktree) | ||
__Note__: If you are looking for something visually more accurate, you could | ||
use [DeltaE] or use the above snippet, but using [ciecam02] instead of RGB. | ||
__Note__: If you are looking for something visually more accurate, you could: | ||
use [DeltaE], or use the above snippet, combined with a transform from rgb to | ||
[ciecam02] scaled to 0-255. | ||
[DeltaE]: https://github.com/zschuessler/DeltaE | ||
@@ -215,8 +219,2 @@ [ciecam02]: https://github.com/baskerville/ciecam02 | ||
### Sources: Color ๐จ | ||
- [12-Bit & 8-Bit color palettes] | ||
- [Pico-8 color palette] | ||
- [Some Android Arts palettes] | ||
## Contributors ๐ฆ | ||
@@ -375,8 +373,2 @@ | ||
<!-- Sources: Color --> | ||
[12-Bit & 8-Bit color palettes]: https://en.wikipedia.org/wiki/List_of_color_palettes | ||
[Pico-8 color palette]: https://www.lexaloffle.com/bbs/?tid=2101 | ||
[Some Android Arts palettes]: http://androidarts.com/palette/ | ||
<!-- EOF --> |
@@ -260,9 +260,20 @@ const fs = require('fs'); | ||
path.normalize(`${baseFolder}${readmeFileName}`), | ||
readme.replace(/__\d+__/g, `__${colorsSrc.entires.length}__`) | ||
.replace( | ||
readme.replace( | ||
// update color count in text | ||
/__\d+__/g, | ||
`__${colorsSrc.entires.length}__` | ||
).replace( | ||
// update color count in badge | ||
/\d+-colors-orange/, | ||
`${colorsSrc.entires.length}-colors-orange` | ||
).replace( | ||
// update color count in percentage | ||
/__\d+(\.\d+)?%__/, | ||
`__${((colorsSrc.entires.length / (256 * 256 * 256)) * 100).toFixed(2)}%__` | ||
).replace( | ||
// update file size | ||
/\d+(\.\d+)? MB\)__/g, | ||
`${ | ||
(fs.statSync(path.normalize(`${baseFolder}${folderDist}${fileNameSrc}.json`)).size / 1024 / 1024).toFixed(2) | ||
} MB)__` | ||
), 'utf8' | ||
@@ -269,0 +280,0 @@ ); |
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 not supported yet
13878876
16175
368