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

console-debug-pro

v1.0.22

Published

Clickable console.log with file:line:col and VS Code snippet auto-setup

Readme

An advanced debugging utility that transforms your console.log into clickable file links directly in your terminal.
Stop wasting time searching for your code — just click and go straight to the line in VS Code.

NPM Version NPM Downloads License


📸 Demo Preview

Click on the line number in the terminal → the file opens directly in VS Code!

Demo


🤔 Why Use This Package?

Developers spend too much time hunting down the source of a console.log.
Console Debug Pro automates this process. It enriches your log output with the file name and line number, giving you a one-click path straight to the code.
This makes your debugging workflow up to 10x faster.


✨ Features

  • Clickable Logs — Open files and line numbers from your terminal directly into VS Code.

  • Clickable File Paths — Open files in VS Code at the exact line & column.

  • Short Path Mode — Shows only the last folder and file name instead of long paths

  • Auto Snippet Installation — Instantly insert a console.log with file and line number by typing cs.

  • Colored Output — Path in yellow, line number in blue for better readability.

  • Command Shortcuts:

    • cd → Inserts console.log('DeBug--- line 181:', ) with line number.
    • cf → Inserts debug.logn() that also opens file & line number in VS Code instantly.
  • Universal Compatibility — Works with Node.js, React, Vue, Angular, Next.js, Express, and all major frameworks.

  • Ultra-Lightweight — Only in size, adding no overhead to your project.

  • Customizable — Change the log prefix to fit your preferences.

  • Error-Safe — If the package fails, it falls back to native console.log without breaking your app.


💻 Supported Frameworks

Frontend: React, Vue, Angular, Svelte, Next.js, Nuxt.js, Remix
Backend: Node.js, Express, NestJS, Fastify, Koa, AdonisJS
Full-Stack: Meteor, Blitz.js, Redwood.js

My Skills


📦 Installation

Using npm:

npm install console-debug-pro --save-dev

🛠️ Usage: 1. Import it into your project

import debug from 'console-debug-pro';

// Or for CommonJS
const debug = require('console-debug-pro');

2. Usag it: It works just like a normal console.log.

// Basic usage
debug.log('This is my message.');
// Output: DeBug---> controllers/postController.js --> 174:1 This is my message.

// Short usage 
console.log('DeBug--- line 181:','This is my message.' );
// Output: DeBug--->174:1 This is my message.

// With variables
const user = { id: 1, name: 'John' };
debug.log('User object:', user);
// Output: DeBug---> controllers/postController.js --> 174:1 User object: { id: 1, name: 'John' }

3. Use the Auto-Snippet in VS Code (The Magic ✨) It works just like a normal console.log.

  • Type cs and press Tab.
  • It will automatically insert: debug('DeBug--- line X:', );
Shortcut	    Description
`cd`	        Inserts `console.log('DeBug--- line 181:', )` with line number.
`cf`            Inserts `debug.logn()` that also opens file & line number in VS Code instantly.

🗺️ Roadmap

  • Support for additional themes and color options.
  • Snippet support for WebStorm and other IDEs.
  • Add support for log levels (info, debug, trace).

🤝 Contributing

Contributions are always welcome!

  • If you'd like to make improvements, please create a Pull Request. For any bugs or feature requests, please create an Issue.

  • GitHub: Samyy-decod


🧑‍💻 Author