1.0.0 • Published 8 years ago

console-dot-trace v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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

1.0.0

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago