JSPM

backtrace

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q53789F
  • License MIT

Library for getting stack traces in cross browser manner.

Package Exports

  • backtrace

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (backtrace) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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