Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
color_name_converter
Advanced tools
converts an html color name to a format of your choice
#Installation
npm install color_name_converter
#Usage
First you require the library:
var color = require("color_name_to_rgb");
Invoking is easy. You just write:
var output = color("gold");
The output will be:
var output = 'rgb(255,215,0)';
As a default the function returns a rgb string. But you can define your format too:
var output = color("gold", "hex");
// output = ''#ffd700'';
var output = color("gold", "rgba");
// output 'rgb(255,215,0,1 )'
var output = color("gold", "array");
// output [255, 215, 0, 1]
Valid formats are rgb, rgba, hex, array, object
FAQs
"converts html color names to a format of your choice"
We found that color_name_converter 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.