
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
colors-palette
Advanced tools
First download and install ImageMagick. In Mac OS X, you can simply use Homebrew and do:
brew install imagemagick
then either use npm:
npm install colors-palette
or clone the repo:
git clone git://github.com/cyrilis/colors-palette.git
var colorPalette = require("colors-palette");
colorPalette("/path/to/img", 8, function(err, colors){
if(err){
console.error(err);
return false;
}
console.log(colors);
});
{
"result": [
{
"counts": 272530,
"rgb": "228,234,237",
"hex": "E4EAED",
"percentage": 0.2957,
"percent": "29.57%"
},
{
"counts": 148684,
"rgb": "172,142,114",
"hex": "AC8E72",
"percentage": 0.1613,
"percent": "16.13%"
},
{
"counts": 133115,
"rgb": "191,181,170",
"hex": "BFB5AA",
"percentage": 0.1444,
"percent": "14.44%"
},
{
"counts": 103595,
"rgb": "95,11,9",
"hex": "5F0B09",
"percentage": 0.1124,
"percent": "11.24%"
},
{
"counts": 100268,
"rgb": "201,177,152",
"hex": "C9B198",
"percentage": 0.1088,
"percent": "10.88%"
},
{
"counts": 84419,
"rgb": "163,59,55",
"hex": "A33B37",
"percentage": 0.0916,
"percent": "9.16%"
},
{
"counts": 66604,
"rgb": "57,20,15",
"hex": "39140F",
"percentage": 0.0723,
"percent": "7.23%"
},
{
"counts": 12385,
"rgb": "189,113,141",
"hex": "BD718D",
"percentage": 0.0134,
"percent": "1.34%"
}
]
}
FAQs
Generate color palette with nodejs and ImageMagick.
The npm package colors-palette receives a total of 7 weekly downloads. As such, colors-palette popularity was classified as not popular.
We found that colors-palette 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.