console-dot-trace

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i console-dot-trace

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • kirilv