Skip to content

Commit

Permalink
feat: Adds a color count, replaces __(\d)+__ with the actual amount o…
Browse files Browse the repository at this point in the history
…f colors
  • Loading branch information
meodai committed Aug 19, 2017
1 parent c1db786 commit 4a386a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# color-names 🎨
# __10468__ color-names 🎨
[![GitHub version](https://badge.fury.io/gh/meodai%2Fcolor-names.svg)](https://badge.fury.io/gh/meodai%2Fcolor-names)
[![npm version](https://badge.fury.io/js/color-name-list.svg)](https://badge.fury.io/js/color-name-list)
[![travis build](https://api.travis-ci.org/meodai/color-names.svg?branch=master)](https://travis-ci.org/meodai/color-names)

A handpicked list of color names from various sources and thousands of user submissions. [Try it yourself](http://codepen.io/meodai/full/mEvZRx/) or read [the full list](https://docs.google.com/spreadsheets/d/14ny2oB7g5Tof9TmKiaaDFv25XSCRt-LlBRJhIDz_3Mo/pubhtml?gid=40578722).
A handpicked list of __10468__ color names from various sources and thousands of user submissions. [Try it yourself](http://codepen.io/meodai/full/mEvZRx/) or read [the full list](https://docs.google.com/spreadsheets/d/14ny2oB7g5Tof9TmKiaaDFv25XSCRt-LlBRJhIDz_3Mo/pubhtml?gid=40578722).

> The names of color function like a thread attached to a frightfully slender needle, capable of stitching together our most delicate emotions and memories. When the needle hits the target, we feel either pleasure or emathy. **Kenya Hara – White**

## Process 📋
My goal is to create a as big as possible color name list. I merged different [lists](#sources-), modified the names when they where the same but had different hex values, and I shifted the colors a bit when the same color had different names but the same value.

Expand All @@ -27,16 +26,16 @@ My goal is to create a as big as possible color name list. I merged different [l

### Installation JS 📦

#### yarn
```
yarn add color-name-list
npm install color-name-list --save
```

#### NPM
or
```
npm install color-name-list --save
yarn add color-name-list
```

### color count: __10468__

### Usage JS ⌨
```javascript
import namedColors from 'color-name-list';
Expand All @@ -51,6 +50,6 @@ console.log(someColor.name) // => white
npm install && npm run build
```

# Contributors
# Contributors
- [yxklyx](https://github.com/yxklyx/) hunders of names!!
- [Syl](https://twitter.com/Gypsy_Syl)
- [Syl](https://twitter.com/Gypsy_Syl)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/colornames.json",
"scripts": {
"commit": "git-cz",
"count-colors": "sed -i '' -E \"s/__[0-9^]+__/__`awk 'END {print NR}' src/colornames.csv`__/g\" README.md",
"test": "node node_modules/csvdata/csvdata.js -c src/colornames.csv -d -e -x",
"build": "rm -rf dist && mkdir dist && cp -av src/colornames.csv dist/colornames.csv && node node_modules/.bin/csvtojson dist/colornames.csv >> dist/colornames.json && node node_modules/.bin/json2yaml dist/colornames.json >> dist/colornames.yaml",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
Expand Down Expand Up @@ -39,7 +40,7 @@
},
"config": {
"ghooks": {
"pre-commit": "npm run test && npm run build"
"pre-commit": "npm run test && npm run count-colors && npm run build"
}
}
}

0 comments on commit 4a386a7

Please sign in to comment.