Socket
Socket
Sign inDemoInstall

console-dot-trace

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    console-dot-trace

console.trace for NodeJS


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
3.18 kB
Created
Weekly downloads
 

Readme

Source

node-console-dot-trace

Downloads Version ISC License

A polyfill for the console.trace function you may be used to in the browser.

Install

npm install --save-dev console-dot-trace

Usage

All you have to do is require the module and execute it. It will make console.trace available in your application.

require('console-dot-trace')();

Use anywhere in your application as:

console.trace();

You can also name stack traces:

console.trace('descriptive stack name');

Prefer not to modify the native console object?

var trace = require('console-dot-trace').trace;
trace('descriptive stack name');

More info

For more information on using console.trace, see the Console API in the Chrome Developer Reference.

If you need more advances or programmatic stack parsing, see node-stack-trace.

License

ISC

Keywords

FAQs

Last updated on 26 Mar 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc