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

color-contrast-checker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-contrast-checker - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

.npmignore

10

package.json
{
"name": "color-contrast-checker",
"version": "1.2.0",
"version": "1.3.0",
"description": "This is an accessibility validator based on WCAG 2.0 standard for checking the color contrast.",

@@ -13,3 +13,3 @@ "main": "src/color-contrast-checker.js",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha --reporter spec"
},

@@ -59,3 +59,7 @@ "repository": {

],
"_resolved": "http://registry.npmjs.org/color-contrast-checker/-/color-contrast-checker-1.2.0.tgz"
"_resolved": "http://registry.npmjs.org/color-contrast-checker/-/color-contrast-checker-1.2.0.tgz",
"devDependencies": {
"chai": "^4.1.0",
"mocha": "^3.4.2"
}
}

@@ -5,4 +5,7 @@ # Color Contast Checker

The formula (L1/L2) for contrast is based on [ISO-9241-3] and [ANSI-HFES-100-1988] standards as described here : http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
The formula (L1/L2) for contrast is based on [ISO-9241-3] and [ANSI-HFES-100-1988] standards as described here :
http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
http://www.w3.org/TR/WCAG20/#contrast-ratiodef
Installation:

@@ -120,2 +123,8 @@ ------------

Its sweet and simple completely based on http://www.w3.org/TR/WCAG20/#contrast-ratiodef.
## Tests
`npm test`
## Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

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