Socket
Socket
Sign inDemoInstall

@theodorejb/color-detect

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

2.0.0

Diff

Changelog

Source

[2.0.0] - 2022-11-20

Added

  • colorLuminance() function which implements the W3C algorithm to determine a color's relative luminance.

Changed

  • Renamed colorToRgbaArray() to simply colorToRgba().

Fixed

  • isLightColor() now correctly follows W3C algorithm for comparing color contrast.
theodorejb
published 1.0.1 •

Changelog

Source

[1.0.1] - 2022-04-03

Changed

  • Updated dev dependencies and switched to Chai for native testing of ES module.
theodorejb
published 1.0.0 •

Changelog

Source

[1.0.0] - 2018-03-15

  • Initial release
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc