npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@onurege3467/easycolor

v3.0.0

Published

Simple CLI output colorizer for Node.js applications

Readme

EasyColor 🎨

Modern, optimize edilmiş ve fonksiyonel Node.js terminal renklendirme kütüphanesi. Artık TrueColor, Gradient ve Tema desteğiyle! 🚀

✨ Özellikler

  • 🎨 TrueColor (16 Milyon Renk) - RGB ve HEX desteği
  • 🌈 Gradient (Renk Geçişi) - İki renk arası pürüzsüz geçişler
  • 📝 Tagged Templates - `easycolor.template` ile kolay kullanım
  • 🎭 Tema Sistemi - Kendi renk paletinizi oluşturun
  • 💻 İnteraktif CLI - Kullanıcı dostu terminal arayüzü
  • 🛡️ TypeScript Desteği - Tam tip güvenliği (.d.ts)
  • 🧹 Strip Utility - ANSI kodlarını temizleme aracı
  • 🚀 Yüksek performans - Optimize edilmiş algoritmalar
  • 🎯 Fonksiyonel programlama yaklaşımı
  • 🔗 Zincir API ile çoklu stil uygulama

📦 Kurulum

npm install @onurege3467/easycolor --global

Projenizde kullanmak için:

npm install @onurege3467/easycolor --save

🚀 Komut Satırı Kullanımı

İnteraktif Mod (YENİ!)

Hiçbir parametre vermeden çalıştırırsanız interaktif mod açılır:

easycolor

Standart Komutlar

# Metin renklendirme (Standart)
easycolor text red "Kırmızı metin"

# TrueColor (HEX ve RGB)
easycolor hex "#FF5733" "Turuncu metin"
easycolor rgb "100,50,255" "Mor metin"

# Gradient (Renk Geçişi)
easycolor gradient "red,blue" "Kırmızıdan maviye geçiş"

# Dosya Okuma
easycolor cat dosya.txt gradient "blue,green"

# Gökkuşağı efekti
easycolor rainbow "Gökkuşağı metin"

💻 Programatik Kullanım

1. Tagged Templates (Önerilen) 🌟

En kolay kullanım şekli!

const easycolor = require('@onurege3467/easycolor');

console.log(easycolor.template`
  Merhaba {red Dünya}!
  Bu {bgBlue.white çoklu stil} örneğidir.
  Hex renkler: {hex("#FF5733") Turuncu}
  RGB renkler: {rgb(100,200,50) Yeşilimsi}
`);

2. TrueColor & Gradients 🎨

// HEX Renkler
console.log(easycolor.hex('#FF5733', 'Bu bir HEX rengidir'));
console.log(easycolor.bgHex('#0000FF', 'Mavi Arka Plan'));

// RGB Renkler
console.log(easycolor.rgb(255, 100, 50, 'RGB Rengi'));

// Gradient (Renk Geçişi)
console.log(easycolor.gradient('Başlangıçtan sona renk geçişi', 'red', 'blue'));

3. Tema Sistemi 🎭

Kendi semantik renklerinizi tanımlayın:

easycolor.setTheme({
  info: ['blue', 'bold'],
  error: ['red', 'underline'],
  success: ['green', 'italic'],
  custom: ['hex("#FFA500")', 'bgHex("#333")'] // Özel HEX kombinasyonu
});

// Kullanım
console.log(easycolor.theme('info', 'Bilgi Mesajı'));
console.log(easycolor.theme('error', 'Hata Oluştu!'));

4. Yardımcı Araçlar

// Strip (ANSI Temizleme)
const renkli = easycolor.red('Metin');
const temiz = easycolor.strip(renkli); // "Metin"

// İç içe stiller (Nested)
console.log(easycolor.red(`Dış Kırmızı ${easycolor.blue('İç Mavi')} Dış Kırmızı`));

5. Temel Renklendirme

// Basit renklendirme
console.log(easycolor.red('Kırmızı metin'));
console.log(easycolor.green('Yeşil metin'));

// Zincir API
console.log(
  easycolor.chain('Mavi ve kalın metin')
    .blue()
    .bold()
    .toString()
  );

🎨 Desteklenen Renkler ve Stiller

Metin Renkleri

  • Standart: black, red, green, yellow, blue, magenta, cyan, white
  • Parlak: brightBlack, brightRed... vb.
  • TrueColor: hex(), rgb()

Arka Plan Renkleri

  • Standart: bgBlack, bgRed... vb.
  • TrueColor: bgHex(), bgRgb()

Metin Stilleri

  • bold, dim, italic, underline, blink, inverse, hidden, strikethrough

🆕 Sürüm Geçmişi

v3.0.0 (The TrueColor Update)

  • 🌟 TrueColor Desteği: 16 milyon renk (RGB/HEX)
  • 🌈 Gradient: Renk geçişleri
  • 📝 Template Literals: Kolay yazım sözdizimi
  • 🎭 Tema Motoru: Özelleştirilebilir temalar
  • 💻 İnteraktif CLI: Yeni nesil terminal arayüzü
  • 🛡️ TypeScript: Tam .d.ts tanımları

v2.0.0

  • 🚀 Performans optimizasyonları
  • 🏗️ Class tabanlı yapı

v1.0.0

  • Temel renk fonksiyonları