New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hex-blender

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex-blender

a library for finding out the hex value between two hex values.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

hex-blender

a library for finding out the hex value between two hex values.

🤤 usage

to install the library as a dependency to your project, run

yarn add hex-blender
# or, according to your preference
npm install hex-blender

import the library in your project like below, and you can get started using it directly.

// simply import the library
import hexBlend from 'hex-blender'
// and then ... just use it like you would any library
const getMiddleColour = (colourOne, colourTwo) => {
	return hexBlend(colourOne, colourTwo, 4, 2)
}
// adding `#` or not is optional
getMiddleColour('ff0000', '#00ff00') // '#7f7f00'

Keywords

hex

FAQs

Package last updated on 31 Mar 2022

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