Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
color-lighten-tool
Advanced tools
Output = Input color * opacity + white background
Language : English | 中文
📦 UMD module
& ESModule
, offer .d.ts
file to support Typescript.
npm i color-lighten-tool
function colorLightenTool(color: string, opacity: number): string
import colorLightenTool from 'color-lighten-tool'
const outPutColor = colorLightenTool('rgb(255,0,0)', 0.4) // rgb(255,153,153)
const outPutColor = colorLightenTool('#FF0000', 0.4) // rgb(255,153,153)
For advanced users, you can pass a color to replace white background.
function colorLightenTool(color: string, opacity: number[, bgColor: {r: number, g: number, b: number}]): string
Output = Input color * opacity + custom background color
Or Check demo.html
in Git for more detail .
FAQs
Make color lighten, like add opacity and white background.
The npm package color-lighten-tool receives a total of 1 weekly downloads. As such, color-lighten-tool popularity was classified as not popular.
We found that color-lighten-tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.