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

proconsole

v1.0.0

Published

proconsole, add style and color by class in console

Readme

ProConsole

Description

ProConsole is an npm library for creating colored messages in the console. It allows you to define dynamic methods to print messages with specific colors, improving the readability and organization of logs.

Installation

To install ProConsole, follow these steps:

  1. Install the library via npm:
    npm install proconsole

Usage

To use ProConsole, follow these steps:

  1. Import the library:

    const proconsole = require('proconsole');
  2. Create dynamic methods for colored messages:

    // Create a method for error messages
    proconsole.create('error', 'red');
    
    // Create a method for success messages
    proconsole.create('success', 'green');
  3. Use the created methods:

    proconsole.error('This is an error message');
    proconsole.success('This is a success message');

Main Functions

  • create(name, color): Creates a new log method with the specified name and color.

    • name (string): The name of the log method to create.
    • color (string): The color of the message text.

    Example call:

    proconsole.create('info', 'blue');
  • [name of the class](message): Prints the message in the class color.

    • message (string): The error message to print.

    Example call:

    proconsole.error('This is an error message');

Example Usage

Here is an example of how to use ProConsole to create and use colored log methods:

const proconsole = require('proconsole');

// Create a method for warning messages
proconsole.create('warn', 'yellow');

// Use the created method to print a warning message
proconsole.warn('This is a warning message');

Example Usage