Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bigpipe/backtrace
Stack trace utility that has been removed from the assume.js assertion library.
https://github.com/bigpipe/backtrace
Last synced: 1 day ago
JSON representation
Stack trace utility that has been removed from the assume.js assertion library.
- Host: GitHub
- URL: https://github.com/bigpipe/backtrace
- Owner: bigpipe
- License: mit
- Created: 2014-05-14T18:27:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T15:13:12.000Z (over 9 years ago)
- Last Synced: 2024-04-24T19:03:57.296Z (7 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BackTrace
A simple utility to create a full and human readable stack trace across node and
browsers old ancient browsers which can be manipulated. To use this in browsers,
run the code through browserify.## Installation
This module is released through npm:
```
npm install --save backtrace
```## Usage
```js
var BackTrace = require('backtrace');//
// Create a new stack trace
//
var trace = new BackTrace();console.log(trace);
console.log(JSON.stringify(trace));//
// Remove items from the stacktrace.
//
trace.slice(1);
console.log(trace);
console.log(JSON.stringify(trace));
```## License
MIT