Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catdad/node-console-dot-trace
console.trace for NodeJS
https://github.com/catdad/node-console-dot-trace
Last synced: 7 days ago
JSON representation
console.trace for NodeJS
- Host: GitHub
- URL: https://github.com/catdad/node-console-dot-trace
- Owner: catdad
- Created: 2016-03-26T16:51:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-26T17:34:26.000Z (over 8 years ago)
- Last Synced: 2024-10-11T04:19:25.531Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-console-dot-trace
[![Downloads][1]][2] [![Version][3]][2] [![ISC License][4]][5]
[1]: https://img.shields.io/npm/dm/console-dot-trace.svg
[2]: https://www.npmjs.com/package/console-dot-trace[3]: https://img.shields.io/npm/v/console-dot-trace.svg
[4]: https://img.shields.io/npm/l/console-dot-trace.svg
[5]: http://spdx.org/licenses/ISCA polyfill for the `console.trace` function you may be used to in the browser.
## Install
npm install --save-dev console-dot-trace
## UsageAll you have to do is require the module and execute it. It will make `console.trace` available in your application.
```javascript
require('console-dot-trace')();
```Use anywhere in your application as:
```javascript
console.trace();
```You can also name stack traces:
```javascript
console.trace('descriptive stack name');
```Prefer not to modify the native `console` object?
```javascript
var trace = require('console-dot-trace').trace;
trace('descriptive stack name');
```## More info
For more information on using `console.trace`, see the [Console API](https://developer.chrome.com/devtools/docs/console-api) in the Chrome Developer Reference.
If you need more advances or programmatic stack parsing, see [`node-stack-trace`](https://github.com/felixge/node-stack-trace).
## License
[ISC](http://spdx.org/licenses/ISC)