Socket
Book a DemoInstallSign in
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

latest
Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
56
154.55%
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

color

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