Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-string

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-string - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

index.js

@@ -15,6 +15,14 @@ /* MIT license */

var cs = module.exports = {
get: {},
to: {}
};
cs.get = function (string) {
var prefix = string.substring(0, 3).toLowerCase();
switch (prefix) {
case 'hsl': return {model: 'hsl', value: cs.get.hsl(string)};
case 'hwb': return {model: 'hwb', value: cs.get.hwb(string)};
default: return {model: 'rgb', value: cs.get.rgb(string)};
}
};
cs.get.rgb = function (string) {

@@ -21,0 +29,0 @@ if (!string) {

2

package.json
{
"name": "color-string",
"description": "Parser and generator for CSS color strings",
"version": "1.0.1",
"version": "1.1.0",
"author": "Heather Arthur <fayearthur@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

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