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-factory
Advanced tools
CSS colors transformer
$ npm i color-factory
import Color from 'color-factory'
const colorFromString = new Color('rgba(12, 34, 56, 0.7)')
colorFromString.toHex()
colorFromString.h(100).s(0.4).b(30).toHSL()
colorFromString.g()
const colorFromObject = new Color({h: 100, s: 0.5, l: 0.3})
colorFromObject.toRGBA()
Convert color instance to CSS hex string.
Convert color instance to CSS rgb string.
Convert color instance to CSS rgba string.
Convert color instance to CSS hsl string.
Convert color instance to CSS hsla string.
Convert color instance to CSS color string, such as 'red', 'blue', 'transparent' etc.
Get the value of red channel.
Get the value of green channel.
Get the value of blue channel.
Get the value of hue.
Get the value of saturation.
Get the value of lightness.
Get the value of alpha channel.
FAQs
CSS color converter
We found that color-factory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.