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.
string-to-color
Advanced tools
Generate time invariant color from any string or any object.
npm install string-to-color
yarn add string-to-color
https://gustu.github.io/string-to-color/
const stc = require('string-to-color');
const color = stc('string'); // => "#7f1de4"
or just generate color from any object, even null!
const color = stc(null); // => "#1ad64b"
Another feature is that when your string contains color name, output will more or less equal to that color
const color = stc("i am a red fox"); // => "#f03d22"
When multiple colors are provided, they will be mixed with each other
const color = stc("red green blue"); // => "#7f5b78"
MIT.
FAQs
Generates color from any string or any object
The npm package string-to-color receives a total of 36,498 weekly downloads. As such, string-to-color popularity was classified as popular.
We found that string-to-color 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.