
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
random-color-toolkit
Advanced tools
Un petit utilitaire qui génère des couleurs aléatoires en format hexadécimal (#RRGGBB), RGB (rgb(r,g,b)) ou HSL (hsl(h,s%,l%)). Idéal pour les développeurs frontend, les designers ou toute personne qui veut ajouter une touche de couleur dynamique dans ses
Générateur de couleurs aléatoires pour formats hexadécimal, RGB et HSL
Un petit utilitaire qui génère des couleurs aléatoires en format hexadécimal (#RRGGBB), RGB (rgb(r,g,b)) ou HSL (hsl(h,s%,l%)). Idéal pour les développeurs frontend, les designers ou toute personne qui veut ajouter une touche de couleur dynamique dans ses projets.
npm install random-color-toolkit
import { randomHex, randomRGB, randomHSL } from "random-color-toolkit";
// Générer une couleur hexadécimale
console.log(randomHex()); // "#3fa9f5"
// Générer une couleur RGB
console.log(randomRGB()); // "rgb(63, 169, 245)"
// Générer une couleur HSL
console.log(randomHSL()); // "hsl(204, 90%, 60%)"
const { randomHex, randomRGB, randomHSL } = require("random-color-toolkit");
// Utilisation identique
console.log(randomHex()); // "#a83ff5"
randomHex()Retourne une couleur hexadécimale au format #RRGGBB
string - Couleur hexadécimale (ex: "#3fa9f5")randomRGB()Retourne une couleur au format RGB rgb(r, g, b)
string - Couleur RGB (ex: "rgb(63, 169, 245)")randomHSL()Retourne une couleur au format HSL hsl(h, s%, l%)
string - Couleur HSL (ex: "hsl(204, 90%, 60%)")Les tests sont réalisés avec Vitest.
Exécutez les tests avec :
npm test
{
"scripts": {
"test": "vitest"
}
}
git clone https://github.com/Lil-Code30/random-color-toolkit.git
npm install
npm test
Les contributions sont les bienvenues ! Pour contribuer :
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Distribué sous licence MIT. Voir le fichier LICENSE pour plus d'informations.
⭐ N'oubliez pas de mettre une étoile sur GitHub si ce projet vous est utile !
Ce projet a été généré avec ❤️ pour la communauté JavaScript.
FAQs
Un petit utilitaire qui génère des couleurs aléatoires en format hexadécimal (#RRGGBB), RGB (rgb(r,g,b)) ou HSL (hsl(h,s%,l%)). Idéal pour les développeurs frontend, les designers ou toute personne qui veut ajouter une touche de couleur dynamique dans ses
We found that random-color-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.