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-log

v0.0.6

Published

🌟 Colorful console logger for Angular & Node.js. Works in browser DevTools and terminal with neon ANSI colors. Zero config, zero dependencies.

Readme

NeonLog 🌟

npm version npm downloads License: MIT

Colorful console logger for Angular & Node.js. Works in browser DevTools and terminal with neon ANSI colors. Zero config, zero dependencies.


πŸ“¦ Installation

npm install neon-log --save-dev

πŸš€ Quick Start

Import

import { neonLog } from 'NeonLog';

Use

neonLog.log('Hello World');
neonLog.info('User logged in', { id: 123 });
neonLog.warn('API deprecated');
neonLog.error('Error occurred', error);
neonLog.debug('Debug data', data);

Override console (optional)

// In main.ts
import { neonLog } from 'NeonLog';

if (!environment.production) {
  neonLog.overrideConsole();
}

// Now use console normally and it's colorful!
console.log('Message');  // βœ… Cyan

🎨 Colors

  • LOG β†’ Cyan 🟦
  • INFO β†’ Purple πŸŸͺ
  • WARN β†’ Yellow 🟨
  • ERROR β†’ Red πŸŸ₯
  • DEBUG β†’ Green 🟩

Works in:

  • βœ… Browser DevTools
  • βœ… Terminal/Node.js
  • βœ… VS Code Console
  • βœ… Any modern terminal

πŸ“– Examples

Angular Component

import { Component, OnInit } from '@angular/core';
import { neonLog } from 'NeonLog';

@Component({
  selector: 'app-home',
  template: '<h1>Home</h1>'
})
export class HomeComponent implements OnInit {
  ngOnInit() {
    neonLog.log('Component loaded');
  }
}

Angular Service

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { neonLog } from 'NeonLog';

@Injectable({ providedIn: 'root' })
export class ApiService {
  constructor(private http: HttpClient) {}

  getUsers() {
    neonLog.log('Fetching users...');
    return this.http.get('/api/users').subscribe({
      next: (data) => neonLog.info('βœ… Users loaded:', data),
      error: (err) => neonLog.error('❌ Error:', err)
    });
  }
}

Node.js/Express

import { neonLog } from 'NeonLog';
import express from 'express';

const app = express();

app.get('/api/users', (req, res) => {
  neonLog.info('GET /api/users');
  res.json([{ id: 1, name: 'John' }]);
});

app.listen(3000, () => {
  neonLog.log('πŸš€ Server running on port 3000');
});

🎯 API

import { neonLog } from 'NeonLog';

neonLog.log(...args);      // Cyan
neonLog.info(...args);     // Purple
neonLog.warn(...args);     // Yellow
neonLog.error(...args);    // Red
neonLog.debug(...args);    // Green

neonLog.overrideConsole(); // Replace all console.*()
neonLog.restore?.();       // Restore original console

⚑ Features

  • βœ… DevDependency only - Not in production bundle
  • βœ… Zero config - Import and use
  • βœ… No dependencies - Pure TypeScript
  • βœ… Cross-platform - Browser + Terminal
  • βœ… ANSI colors - True neon in terminal
  • βœ… CSS colors - Styled in DevTools
  • βœ… 1KB gzipped - Tiny footprint

πŸ”§ TypeScript Support

Full type safety:

type NeonLevel = 'log' | 'info' | 'warn' | 'error' | 'debug';
type NeonLogApi = typeof neonLog;

πŸ“Š Performance

  • Bundle Size: 1KB gzipped
  • Load Time: <1ms
  • Dependencies: 0
  • Production Safe: Yes (devDependency)

🌐 Browser Support

| Browser | Support | |---------|---------| | Chrome | βœ… 90+ | | Firefox | βœ… 88+ | | Safari | βœ… 14+ | | Edge | βœ… 90+ | | Terminal | βœ… All |


πŸ“ License

MIT Β© Swapnil Muley


πŸ”— Links


Made with πŸ’š for colorful debugging

Happy logging! πŸš€