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

color-name-lists

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-name-lists - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

lib/colors/sanzo-wada-I.json

20

index.js
const { on } = require('events');
const fs = require('fs');
const path = require('path');
const directoryPath = path.join(__dirname, 'lib/colors');
const libPath = path.join(__dirname, 'lib');
const directoryPath = path.join(libPath, 'colors');
const descriptions = require(libPath + '/descriptions.json');

@@ -81,2 +83,16 @@ const wikipediaList = require('wikipedia-color-names/colors.min.json');

module.exports = lists;
const sanitizedDescriptions = {};
Object.keys(descriptions).forEach(key => {
const sanitizedKey = hyphensToCamelCase(key);
const description = descriptions[key];
description.key = sanitizedKey;
sanitizedDescriptions[sanitizedKey] = description;
});
console.log(lists)
module.exports = {
lists,
meta: sanitizedDescriptions
};

2

package.json
{
"name": "color-name-lists",
"version": "1.2.0",
"version": "2.0.0",
"description": "A collection of color name lists",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

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