
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
All the colors of the web
$ npm install webcolors
Use a CSS preprocessor such ass PostCSS to handle
@import syntax.
@import "webcolors/material/index.css";
body {
color: --red;
background: --yellow;
}
Use sass to handle @import syntax. The format of
the import file path depends on your configuration.
@import "~webcolors/material/index.css";
body {
color: $red;
background: $yellow;
}
Install and configure Less.js.
@import "node_modules/webcolors/flatui/index";
body {
color: @red;
background: @blue;
}
Install and configure Stylus.
@import "node_modules/webcolors/mrmrs";
body {
color: orange;
background: white;
}
Colors can be imported directly from Node.js scripts or modules.
// All palettes:
const webcolors = require("webcolors");
// Specific palettes:
const bootstrap = require("webcolors/bootstrap");
const material = require("webcolors/material");
console.log(`FlatUI yellow: ${webcolors.flatui.yellow}`);
console.log(`Bootstrap red: ${bootstrap.red}`);
console.log(`Material blue: ${material.blue}`);
Palettes pre-exported as JSON files can be found in the package's palette directories.
1.2.2 - Fix typo in Material palette for "olive" color.
1.2.0 - Add plain, non-number-prefixed Material color aliases, e.g.
cyan => cyan500, indigo => indigo500, etc.
1.1.0 - All color values are normalized as uppercase hex strings.
1.0.0 - Breaking change to directory structure. No more dist folder,
individual palettes are available at root directory.
Inspired by the material-colors and mrmrs-colors packages.
MIT - see LICENSE file.
FAQs
Color palettes
We found that webcolors 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
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.