Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

backtrace

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrace

Library for getting stack traces in cross browser manner.

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
14
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

stacktrace

FAQs

Package last updated on 10 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts