Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Server SecurityKI-Deal-Maker: Vertrieb mit KI-Agenten automatisieren(25.09.2026 um 13:09 Uhr)
•
Server SecuritySales Enablement: Definition, Vorteile und Tools(25.09.2026 um 13:09 Uhr)
•
Server SecurityCorporate Identity(25.09.2026 um 14:09 Uhr)
••
Server SecurityDateirettung per grafischer Oberfläche(25.09.2026 um 07:00 Uhr)
•
Sicherheitslücken (CVE)Root für jedermann: Gefährliche Lücke in OxygenOS 16(25.09.2026 um 13:00 Uhr)
•
Server SecurityTux macht Feuer(26.09.2026 um 07:00 Uhr)
•
Server SecurityIm Test: Yubico YubiKey 5C Nano und NFC(28.09.2026 um 07:00 Uhr)
•
Sicherheitslücken (CVE)Nach KI-Ausbrüchen: OpenAI pausiert Training(28.09.2026 um 10:00 Uhr)
••
Server SecurityKI-Deal-Maker: Vertrieb mit KI-Agenten automatisieren(25.09.2026 um 13:09 Uhr)
•
Server SecuritySales Enablement: Definition, Vorteile und Tools(25.09.2026 um 13:09 Uhr)
•
Server SecurityCorporate Identity(25.09.2026 um 14:09 Uhr)
••
Server SecurityDateirettung per grafischer Oberfläche(25.09.2026 um 07:00 Uhr)
•
Sicherheitslücken (CVE)Root für jedermann: Gefährliche Lücke in OxygenOS 16(25.09.2026 um 13:00 Uhr)
•
Server SecurityTux macht Feuer(26.09.2026 um 07:00 Uhr)
•
Server SecurityIm Test: Yubico YubiKey 5C Nano und NFC(28.09.2026 um 07:00 Uhr)
•
Sicherheitslücken (CVE)Nach KI-Ausbrüchen: OpenAI pausiert Training(28.09.2026 um 10:00 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

Day 12: Pico-co-colors 🐥

We've already touched gradients in the terminal, but what if you'd like to simply color one line, word or phrase? Well, picocolors does exactly that nice and easy! Install with your favourite package manager, e.g. deno add npm:picocolors…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

We've already touched gradients in the terminal, but what if you'd like to simply color one line, word or phrase? Well, picocolors does exactly that nice and easy!



Install with your favourite package manager, e.g. deno add npm:picocolors and create a file, e.g. main.ts:




import pico from "picocolors";

console.log(
pico.redBright("Happy ") +
pico.greenBright("Holidays") +
pico.yellowBright("!")
);






Run with e.g. deno run -A ./main.ts and enjoy the festive greeting:





Of course, you could always use ASCII Color codes directly, e.g. like so:




console.log(
"\u001b[91mHappy \u001b[92mHolidays\u001b[93m!"
); // 91 = Foreground bright red, 92 = Bright green and 93 is Bright yellow






But that's way less descriptive, isn't it?



Not to mention that picocolors is NO_COLOR friendly and comes with couple of extra beauties like italic, bold, dim and inverse.



Do try them out and share your creations!



Liked the content and would love to have more of it all year long?



Buy Me A Coffee

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day 12: Pico-co-colors 🐥

Thematisch verwandte Begriffe: Picococolors · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-88808 | A vulnerability has been identified within Rancher Manager where the Fle…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag