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

colorider

v1.2.0

Published

A module for output styling in Terminal, iTerm, etc.

Readme

Colorider Module

A node.js module for output styling in Terminal, iTerm, etc.

Install

˃₋ npm install colorider

Usage

const Cr = require('colorider');
console.log(Cr.red.bold('Hi colorider!'));

console.log(Cr.cyan('Text') === '\u001B[36mText\u001B[39m');

Tags preset

The following tags works with most terminals and terminals emulators.

Modifier tags (text formatting)

bolddimitalicunderlineblinkinversehiddenstrike

Color scheme tags

Converter tags

The special tags for color models conversion to ansi code.

Example

// formatting text
console.log(Cr.bold('Bold modifier'));
console.log(Cr.italic('Italic modifier'));
console.log(Cr.underline('Underline modifier'));

// foreground (text color)
console.log(Cr.red('Red color'));
console.log(Cr.rgb(255, 224, 0)('Yellow color'));
console.log(Cr.hex('#00D75F')('Green color'));

// background
console.log(Cr.BLACK('Black background'));
console.log(Cr.RGB(255, 224, 0)('Yellow background'));
console.log(Cr.HEX('#EEEEEE')('White background'));

Conversion level

console.log('level:', Cr.level); // default 2

Cr.level = 1;
console.log(Cr.RGB(255, 250, 154)('Conversion level 1'));

Cr.level = 2;
console.log(Cr.RGB(255, 250, 154)('Conversion level 2'));

Cr.level = 3;
console.log(Cr.RGB(255, 250, 154)('Conversion level 3'));

Base features

Style combining

console.log(Cr.red('Red') + ' Normal ' + Cr.blue('Blue'));

Chain tags

console.log(Cr.white.bold.underline('White bold underline'));

Style definition

const strBold = Cr.bold;
const strRed = strBold.red;
const strWhiteBg = strRed.HEX('#FFFFFF');

console.log(Cr('Normal'));

console.log(strBold('Bold'));
console.log(strRed('Bold Red'));
console.log(strRed('Bold Red White background'));

Nested tags

// string
console.log('before', Cr.red('( a', Cr.yellow('( b', Cr.green('( c )'), 'b )'), 'a )'), 'after');

// difine
const strRed = Cr.red('( c )');
const strYellow = Cr.yellow('( b', strRed, 'b )');
const strGreen = Cr.green('( a', strYellow, 'a )');
console.log('before', strGreen, 'after');