🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

trace-console-log

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trace-console-log

Have a stray console.log but too lazy to find it?

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

trace-console-log

Have a stray console.log but too lazy to find it?

trace-console-log is here to help

npm install trace-console-log

Usage

Simply require it and it will prefix any console.log/error with the file and line it was printed from.

node -r trace-console-log my-program.js

For example assuming the following is called app.js

console.log('hi!')

Running this with -r trace-console-log prints

app.js:1 - hi!

Easy!

License

MIT

FAQs

Package last updated on 16 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts