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

cli-colors-pro

v1.0.1

Published

Make your terminal output colorful and beautiful — zero dependencies!

Readme

cli-colors-pro

Make your terminal output colorful and beautiful — zero dependencies!

npm version license zero dependencies

Installation

npm install cli-colors-pro

Quick Start

import c from 'cli-colors-pro';

console.log(c.green('Hello World!'));
console.log(c.bold(c.red('Something went wrong!')));

c.success('Server started on port 3000');
c.error('Database connection failed');

Features

| Feature | Description | |---------------------|--------------------------------------------------| | Text Colors | red, green, yellow, blue, magenta, cyan, white | | Bright Colors | brightRed, brightGreen, brightYellow, brightCyan | | Background Colors | bgRed, bgGreen, bgYellow, bgBlue, bgCyan | | Text Styles | bold, italic, underline, dim, strikethrough | | Log Helpers | success, error, warn, info, debug | | Box | Draw a Unicode border around any text | | Progress Bar | Render a colored progress bar | | Multi-style | Apply multiple styles at once | | Zero Dependencies | No external packages needed |


API Reference

Text Colors

c.red('text')
c.green('text')
c.yellow('text')
c.blue('text')
c.magenta('text')
c.cyan('text')
c.white('text')

Bright Colors

c.brightRed('text')
c.brightGreen('text')
c.brightYellow('text')
c.brightBlue('text')
c.brightCyan('text')

Background Colors

c.bgRed('text')
c.bgGreen('text')
c.bgYellow('text')
c.bgBlue('text')
c.bgCyan('text')
c.bgMagenta('text')

Text Styles

c.bold('text')
c.italic('text')
c.underline('text')
c.dim('text')
c.strikethrough('text')

Apply Multiple Styles At Once

// Usage: c.style(text, ...styles)
c.style('Hello', 'bold', 'red', 'underline')
c.style('World', 'bgBlue', 'white', 'bold')

Log Helpers

c.success('User created successfully');
// Output: SUCCESS User created successfully  (in green)

c.error('File not found');
// Output: ERROR File not found  (in red)

c.warn('Memory usage is high');
// Output: WARN Memory usage is high  (in yellow)

c.info('Server running on port 3000');
// Output: INFO Server running on port 3000  (in cyan)

c.debug('Response time: 120ms');
// Output: DEBUG Response time: 120ms  (dimmed)

Box

// Usage: c.box(text, color?)
console.log(c.box('Deployment Complete!', 'green'));
// Output:
// ┌─────────────────────────┐
// │  Deployment Complete!   │
// └─────────────────────────┘

Progress Bar

// Usage: c.progressBar(percent, width?, color?)
console.log(c.progressBar(75));
// Output: [██████████████████████░░░░░░░░] 75%

console.log(c.progressBar(50, 20, 'cyan'));
// Output: [██████████░░░░░░░░░░] 50%

Chain API

// Chain multiple styles together
const styled = c.color('Hello World').red.bold.underline;
console.log(styled.toString());

// Or print directly
c.color('Hello World').green.bold.print();

Full Example

import c from 'cli-colors-pro';

// Colored text
console.log(c.red('Error occurred!'));
console.log(c.green('All systems go!'));

// Combined styles
console.log(c.style('Warning!', 'bold', 'yellow', 'underline'));

// Log helpers
c.success('Build completed in 3.2s');
c.error('Could not connect to database');
c.warn('Deprecated API used');
c.info('Listening on http://localhost:3000');
c.debug('Cache hit ratio: 94%');

// Progress bar
console.log('Uploading: ' + c.progressBar(80, 30, 'cyan'));

// Box
console.log(c.box('  Deployment Successful!  ', 'green'));

License

MIT © Saqib Aziz