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

colorizr

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorizr

Manipulate colors like a boss

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
439
decreased by-32.04%
Maintainers
1
Weekly downloads
 
Created
Source

Colorizr

NPM version build status Maintainability Test Coverage

Setup

Install

npm install --save colorizr

And import:

import Colorizr from 'Colorizr';

Usage

this.colorizr = new Colorizr('#ff0044');

this.colorizr.hex // #ff0044
this.colorizr.hsl // { h: 344, s: 100, l: 50 };
this.colorizr.rgb // { r: 255, g: 0, b: 68 };

this.colorizr.saturate(20);
this.colorizr.lighten(10);

API

Coming soon...

References
https://24ways.org/2010/calculating-color-contrast/
https://snook.ca/technical/colour_contrast/colour.html
https://webaim.org/resources/contrastchecker/

Keywords

FAQs

Package last updated on 28 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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