New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

color-name-list

Package Overview
Dependencies
Maintainers
0
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-name-list - npm Package Compare versions

Comparing version 11.2.0 to 11.3.0

2

package.json
{
"name": "color-name-list",
"version": "11.2.0",
"version": "11.3.0",
"description": "long list of color names",

@@ -5,0 +5,0 @@ "main": "dist/colornames.json",

@@ -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/__30261__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv)
[![name count](https://img.shields.io/badge/__30268__-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 __30261__ unique color names from
A handpicked list of __30268__ unique color names from
[various sources](#sources-) and thousands of curated user submissions.

@@ -58,3 +58,3 @@

## Color Count: __30261__ 🎉
## Color Count: __30268__ 🎉

@@ -61,0 +61,0 @@ ~__0.18%__ of the RGB color space

@@ -44,3 +44,3 @@ import fs from 'fs';

// sort by sorting criteria
colorsSrc.entires.sort((a, b) => {
colorsSrc.entries.sort((a, b) => {
return a[sortBy].localeCompare(b[sortBy]);

@@ -105,3 +105,3 @@ });

const JSONExportString = JSON.stringify(
[...colorsSrc.entires].map( // removes good name attributes
[...colorsSrc.entries].map( // removes good name attributes
(val) => ({

@@ -115,3 +115,3 @@ name: val.name,

const JSONExportStringBestOf = JSON.stringify(
[...colorsSrc.entires].filter(
[...colorsSrc.entries].filter(
(val) => (val[bestOfKey])

@@ -127,3 +127,3 @@ ).map( // removes good name attributes

const JSONExportStringShort = JSON.stringify(
[...colorsSrc.entires]
[...colorsSrc.entries]
.filter(

@@ -161,3 +161,3 @@ // make sure its only one word long

// creates a more compact JSON file, where the HEX color serves as an id
const miniJSONExportObj = colorsSrc.entires.reduce((obj, entry) => {
const miniJSONExportObj = colorsSrc.entries.reduce((obj, entry) => {
obj[entry.hex.replace('#', '')] = entry.name;

@@ -167,3 +167,3 @@ return obj;

const miniJSONExportObjBestOf = colorsSrc.entires.reduce((obj, entry) => {
const miniJSONExportObjBestOf = colorsSrc.entries.reduce((obj, entry) => {
if(entry[bestOfKey]) {

@@ -175,3 +175,3 @@ obj[entry.hex.replace('#', '')] = entry.name;

const miniJSONExportObjShort = colorsSrc.entires.reduce((obj, entry) => {
const miniJSONExportObjShort = colorsSrc.entries.reduce((obj, entry) => {
if (

@@ -297,3 +297,3 @@ entry[bestOfKey] &&

let outputString = objArrToString(
colorsSrc.entires,
colorsSrc.entries,
csvKeys,

@@ -316,3 +316,3 @@ outputFormats[outputFormat]

let outputString = objArrToString(
colorsSrc.entires.filter((val) => (val[bestOfKey])),
colorsSrc.entries.filter((val) => (val[bestOfKey])),
csvKeys,

@@ -335,3 +335,3 @@ outputFormats[outputFormat]

let outputString = objArrToString(
colorsSrc.entires.filter(
colorsSrc.entries.filter(
(val) =>

@@ -365,11 +365,11 @@ val[bestOfKey] &&

/__\d+__/g,
`__${colorsSrc.entires.length}__`
`__${colorsSrc.entries.length}__`
).replace(
// update color count in badge
/\d+-colors-orange/,
`${colorsSrc.entires.length}-colors-orange`
`${colorsSrc.entries.length}-colors-orange`
).replace(
// update color count in percentage
/__\d+(\.\d+)?%__/,
`__${((colorsSrc.entires.length / (256 * 256 * 256)) * 100).toFixed(2)}%__`
`__${((colorsSrc.entries.length / (256 * 256 * 256)) * 100).toFixed(2)}%__`
).replace(

@@ -413,3 +413,3 @@ // update file size

// looks for the original item that caused the error
error.entries = colorsSrc.entires.filter((entry) => {
error.entries = colorsSrc.entries.filter((entry) => {
return entry[key] === value;

@@ -416,0 +416,0 @@ });

@@ -30,3 +30,3 @@

const entires = rows.map((row) => {
const entries = rows.map((row) => {
// decomposes each row into its single entries

@@ -50,3 +50,3 @@ const rowArr = row.split(csvDelimitor);

return {headers, entires, values};
return {headers, entries, values};
};

@@ -53,0 +53,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc