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

neon-logger

v1.0.3

Published

Neon Logger is a lightweight and colorful logger package for Node.js that supports five log levels: info, warn, error, debug, and verbose. Each level is displayed in a distinct color to improve readability and make debugging easier. With Neon Logger, you

Readme

🔥 Neon Logger

A colorful and lightweight logging package for Node.js

🚀 Introduction

Neon Logger is a simple and elegant logger for Node.js that brings colorful log messages to your console. It supports five logging levels:

  • Info (cyan) - General information logs
  • ⚠️ Warning (yellow) - Cautionary messages
  • Error (red) - Critical errors
  • 📝 Debug (gray) - Debugging information
  • 🔎 Verbose (magenta) - Detailed logs for in-depth insights

With Neon Logger, you can enhance the readability of your logs and quickly differentiate message types while debugging.


📦 Installation

You can install Neon Logger via npm:

npm install neon-logger  

📖 Usage

Neon Logger works with both CommonJS (require) and ES Modules (import).

🔹 CommonJS Example

If your project uses CommonJS, require the module as follows:

const logger = require('neon-logger');  

logger.info('This is an info message.');  
logger.warn('Warning: this is a warning message!');  
logger.error('Error: something went wrong.');  
logger.debug('Debugging details...');  
logger.verbose('Extra details for verbose mode.');  

🔹 ES Modules Example

For ES Modules, make sure your package.json includes "type": "module", then use import syntax:

import * as logger from 'neon-logger';  

logger.info('This is an info message.');  
logger.warn('Warning: this is a warning message!');  
logger.error('Error: something went wrong.');  
logger.debug('Debugging details...');  
logger.verbose('Extra details for verbose mode.');  

🎨 Log Level Colors

Each log level is color-coded for better visibility:

| Level | Color | Usage Example | |----------|---------|--------------| | Info | 🔵 Cyan | logger.info('App started successfully.'); | | Warning | 🟡 Yellow | logger.warn('Low disk space warning.'); | | Error | 🔴 Red | logger.error('Failed to connect to the database.'); | | Debug | ⚪ Gray | logger.debug('Received API response: {...}'); | | Verbose | 🟣 Magenta | logger.verbose('Detailed processing information...'); |


⚙️ Configuration

Neon Logger works out of the box, but in the future, we plan to add log level filtering and custom color themes. Stay tuned! 🚀


🛠️ Requirements

  • Node.js >=16.0
  • npm >=7.0

🤝 Contributing

We welcome contributions! If you’d like to improve Neon Logger, feel free to:

  1. Fork the repository

  2. Clone your fork:

    git clone https://github.com/yourusername/neon-logger.git  
  3. Create a new branch:

    git checkout -b feature-new-feature
  4. Make your changes and commit them

  5. Push your changes:

    git push origin feature-new-feature  
  6. Submit a pull request 🚀


📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


🌟 Credits

This project was created by Gabriele Meucci.