New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

acolor

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

acolor

Color utility

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-20.83%
Maintainers
1
Weekly downloads
 
Created
Source

acolor

Build Status npm Version JS Standard

Color utility

Installation

$ npm install acolor --save

Usage

'use strict'

const { rotate } = require('acolor')

console.log(rotate('#38E', 0.5))

Functions

Available functions

SignatureDescription
alpha(color, Alpha) -> stringSet alpha value
darken(color, Amount) -> stringDarken color
isDark(color) -> booleanDetect dark or not
isLight(color) -> booleanDetect light or not
mix(color1, color2) -> stringmix colors
parse(-) -> ObjectParse a color
rotate(color, degree, options) -> stringrotate color

License

This software is released under the MIT License.

  • a-labo

Keywords

FAQs

Package last updated on 06 Jul 2020

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