
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
create-color
Advanced tools
A tiny (565 B) JavaScript library to generate the permanent color from any string, array or object.
A tiny (565 B) JavaScript library to generate permanent color from any string, array or object.
npm install create-color
// or
yarn add create-color
const createColor = require("create-color");
// or
import createColor from "create-color";
// format by default: hex
const hex = createColor("canThereBeAnyText"); // => "#67cb22"
// from string
const hsl = createColor("canThereBeAnyText", { format: "hsl" }); // => "hsl(96,71%,46%)"
// from object
const hex = createColor(
{ name: "Andrey", age: 27, role: "user" },
{ format: "hex" }
); // => "#f6555d"
// from array
const rgb = createColor(["random", "color", "generation"], { format: "rgb" }); // => "rgb(218,179,136)"
FAQs
A tiny (565 B) JavaScript library to generate the permanent color from any string, array or object.
The npm package create-color receives a total of 2,410 weekly downloads. As such, create-color popularity was classified as popular.
We found that create-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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.