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

meo-forkcy-colors

v1.0.9

Published

A custom fork of the original 'colors' library by Marak Squires for Node.js console colors

Readme

meo-forkcy-colors.js

🧪 A custom fork of colors by Marak Squires, maintained by meo-forkcy for educational and non-commercial use.

npm version

📍 Check out the ROADMAP for upcoming features. 💬 Feel free to open issues for feedback or contribute via the develop branch.


📦 Installation

npm i meo-forkcy-colors

🎨 Features

✅ Text Colors

black, red, green, yellow, blue, magenta, cyan, white, gray/grey
orange, lightOrange, lightYellow, lime, teal, skyBlue, lightBlue, pink, purple, lightGray

🌟 Bright Text Colors

brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, brightWhite

🎨 Background Colors

bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray/bgGrey

💡 Bright Background Colors

bgBrightRed, bgBrightGreen, bgBrightYellow, bgBrightBlue, bgBrightMagenta, bgBrightCyan, bgBrightWhite

✨ Styles

reset, bold, dim, italic, underline, inverse, hidden, strikethrough

🌈 Extras

rainbow, zebra, america, trap, random, gradient

🚀 Usage

1. Extend String.prototype

const colors = require('colors');

console.log('hello'.green);
console.log('i like cake'.underline.red);
console.log('inverse'.inverse);
console.log('OMG Rainbows!'.rainbow);
console.log('Trap music!'.trap);

2. Safe Mode (no prototype pollution)

const colors = require('colors/safe');

console.log(colors.green('hello'));
console.log(colors.red.underline('i like cake'));
console.log(colors.inverse('inverse'));
console.log(colors.rainbow('OMG Rainbows!'));
console.log(colors.trap('Trap music!'));

🔧 Enable/Disable Colors

CLI Flags

node app.js --no-color
node app.js --color=false
node app.js --color
node app.js --color=always

# or using environment variable
FORCE_COLOR=1 node app.js

In Code

colors.enable();
colors.disable();

📜 String Substitution

const name = 'Marak';
console.log(colors.green('Hello %s'), name);
// -> Hello Marak

🎯 Custom Themes

Standard API

colors.setTheme({
  silly: 'rainbow',
  input: 'grey',
  verbose: 'cyan',
  prompt: 'grey',
  info: 'green',
  data: 'grey',
  help: 'cyan',
  warn: 'yellow',
  debug: 'blue',
  error: 'red',
  link: 'grey',
  love: 'pink'
});

console.log('this is an error'.error);
console.log('this is a warning'.warn);

Safe API

const colors = require('colors/safe');

colors.setTheme({
  silly: 'rainbow',
  input: 'grey',
  verbose: 'cyan',
  prompt: 'grey',
  info: 'green',
  data: 'grey',
  help: 'cyan',
  warn: 'yellow',
  debug: 'blue',
  error: 'red',
  link: 'grey',
  love: 'pink'
});

console.log(colors.error('this is an error'));
console.log(colors.warn('this is a warning'));

🎨 Combining Styles

colors.setTheme({
  custom: ['red', 'underline'],
});

console.log('styled text'.custom);

🌈 Gradient Text

// Custom gradient
console.log(colors.gradient('Sunset!', [196, 202, 208, 214, 220, 226]));

// Random preset
console.log(colors.gradient('Random Gradient!'));

🖼 Preview ANSI 256 Colors: Check examples/ansi256-colors.js or 🔗 Wikipedia: ANSI Escape Codes


🕵️ Protip: There’s a hidden undocumented style. If you find it, you can summon him...