stack-generator
TypeScript icon, indicating that this package has built-in type declarations

2.0.10 • Public • Published

stack-generator

Build Status Coverage Status GitHub license dependencies module format code of conduct

Generate artificial stacktrace by walking arguments.callee.caller chain. Works everywhere except strict-mode.

Usage

StackGenerator.backtrace()

=> [StackFrame({functionName: 'foo', args: []}), StackFrame(..), StackFrame(..)]

Installation

npm install stack-generator
bower install stack-generator
https://raw.githubusercontent.com/stacktracejs/stack-generator/master/dist/stack-generator.min.js

Browser Support

Sauce Test Status

Contributing

Want to be listed as a Contributor? Start with the Contributing Guide!

/stack-generator/

    Package Sidebar

    Install

    npm i stack-generator

    Weekly Downloads

    2,992,387

    Version

    2.0.10

    License

    MIT

    Unpacked Size

    15.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • eriwen
    • niftylettuce
    • oliversalzburg
    • titanism