
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
color-token
Advanced tools
simple tonal palettes generator with javascript
import { createTonalPalettes } from "color-token";
const colorPalette = createTonalPalettes("gray", "#cdcdcd");
console.log(colorPalette.gray500);
brightness
use Color Model
YUV
import { ColorPicker } from "color-token";
console.log(ColorPicker.brightness("#3f2ed2")); // 75.955
luminance
use Color Model
YIQ
import { ColorPicker } from "color-token";
console.log(ColorPicker.luminance("#3f2ed2")); // 69.779
saturation
use Color Model
HSL
import { ColorPicker } from "color-token";
console.log(ColorPicker.saturation("#3f2ed2")); // 0.6456692913385826
opacity
import { ColorAdjustment } from "color-token";
console.log(ColorAdjustment.opacity("#3f2ed2", 0.5));
brightness
import { ColorAdjustment } from "color-token";
console.log(ColorAdjustment.brightness("#3f2ed2", -0.2));
blendColors
import { ColorAdjustment } from "color-token";
console.log(ColorAdjustment.blendColors("#3f2ed2", "#a1fe23", 0.4));
gray
import { ColorAdjustment } from "color-token";
console.log(ColorAdjustment.gray("#3f2ed2"));
FAQs
simple tonal palettes generator with javascript
The npm package color-token receives a total of 0 weekly downloads. As such, color-token popularity was classified as not popular.
We found that color-token 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.