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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lite-bright

v1.2.14

Published

A lightweight, colorful console logger

Downloads

51

Readme

Lite-Bright Logger

A lightweight, colorful ANSI console logging utility for Node.js.

Features

  • Colorful Logging: Adds vibrant, ANSI-colored output to console logs for easy visual distinction between log levels (DEBUG, INFO, WARN, ERROR, CRITICAL) using blue, yellow, orange, red, and magenta colors.
  • Multiple Log Levels: Supports five distinct log levels—DEBUG, INFO, WARN, ERROR, and CRITICAL—with configurable priority and formatting for flexible logging needs.
  • Lightweight Design: Minimal dependencies and a small footprint, making it ideal for both small projects and large applications without adding unnecessary bloat.
  • Environment-Aware: Automatically adjusts the minimum log level based on the environment (e.g., DEBUG in development, ERROR in production) or customizes it via environment variables (LOG_LEVEL).
  • Timestamp Support: Includes optional timestamp logging for debugging and tracking with ISO-formatted dates.
  • Customizable Output: Extensible architecture allows developers to modify log formats, colors, and levels to suit specific project requirements.
  • Simple API: Easy-to-use methods (debug(), info(), warn(), error(), critical()) for quick integration into any Node.js application.
  • Cross-Platform Compatibility: Works seamlessly across different operating systems, ensuring consistent logging behavior in any environment.

Folder Structure

lite-bright/
├── src/
│   ├── core/                   # Core logging functionality
│   │   ├── levels/
│   │   ├── logConfig.js
│   │   ├── logLevel.js
│   │   └── logger.js
│   ├── plugins/                # Future plugins (e.g., file output, custom formats)
│   │   ├── fileLogger.js
│   │   └── jsonFormatter.js
│   └── index.js                # Exports core and plugins
├── dist/                       # Compiled output (if using a build step)
│   ├── index.js
│   └── ...                     # Other compiled files
├── tests/
│   ├── core/
│   │   ├── logger.test.js
│   │   └── ...
│   └── plugins/
│       ├── fileLogger.test.js
│       └── ...
├── scripts/                    # Build or utility scripts
│   └── build.js
├── package.json
├── .gitignore
├── .eslintrc.js
└── README.md

Installation

npm install lite-bright

Usage

const { log } = require("lite-bright");
log.timestamp();
log.debug("Debug message");
log.info("Info message");
log.warn("Warning message");
log.error("Error message");
log.critical("System failure detected");

const obj = {
    "id": 1,
    "child": {
        "code": "x",
        "value": 12345
    }
};
log.debug(obj);

alt text

Publish

npm publish --access public