Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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