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

colors-convert

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colors-convert - npm Package Versions

2

1.4.1

Diff

ilav
published 1.4.0 •

Changelog

Source

1.4.0

  • [add] add the following functions: isRgbString, isRgbaString, isCmykString, isHslString, isHslaString, stringToColor
ilav
published 1.3.0 •

Changelog

Source

1.3.0

  • [fix] #00000 is not a valid hex color
  • [add] add the following functions: colorToHex, color2rgba, rgbaToHex, cmykToRgba, cmykToHsla, hexToHsla, rgbToHsla, rgbaToHsla, hslToRgba, colorToCmyk, colorToHsl, hslToHsla, colorToHsla, hslaStringToObject, hexToRgb, hexToRgba, shortToLongHex
  • [add] add hsla color format
  • [add] add api page
  • [add] test coverage > 97%
  • [add] add a new logo
  • [change] set as deprecated the following functions: color2string, color2cssString, hex2rgbOrRgba, hex2rgba, hex2hexWithAlpha, hex2cmyk, hex2hsl, rgb2hex, rgb2cmyk, rgb2hsl, rgb2rgba, color2rgb, rgbString2Object, rgba2rgb, rgbaString2Object, cmyk2hex, cmyk2rgb, cmyk2hsl, cmykString2Object, hsl2hex, hsl2rgb, hsl2cmyk, hslString2Object, getRandomColor,
  • [change] rgb2rgba has optional alpha parameter
  • [change] ColorName type: is no more a string, but an object with name, hex and rgb
  • [change] update README
  • [remove] remove useless dependencies
ilav
published 1.2.4 •

Changelog

Source

1.2.4 - 2020-06-28

  • [change] add Netlify Status in README
  • [add] add useless demo page
ilav
published 1.2.3 •

Changelog

Source

1.2.3 - 2020-06-28

  • [change] update README
ilav
published 1.2.2 •

Changelog

Source

1.2.2 - 2020-06-28

  • [change] update README
ilav
published 1.2.1 •

Changelog

Source

1.2.1 - 2020-06-28

  • [fix] remove the ° character for hsl on color2cssString function (closes: #2)
ilav
published 1.2.0 •

Changelog

Source

1.2.0 - 2020-06-28

  • [add] add hslString2Object, rgbString2Object, rgbaString2Object, cmykString2Object functiona
ilav
published 1.1.5 •

Changelog

Source

1.1.5 - 2020-02-16

  • [change] update README
  • [add] add test for color2string and color2cssString for hsl color format
ilav
published 1.1.4 •

Changelog

Source

1.1.4 - 2020-02-16

  • [fix] fix compiling problems
2
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