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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.10
    2,844,830
    • latest
  • 1.1.0
    138,446
    • next

Version History

Package Sidebar

Install

npm i stack-generator

Weekly Downloads

2,822,783

Version

2.0.10

License

MIT

Unpacked Size

15.7 kB

Total Files

8

Last publish

Collaborators

  • eriwen
  • niftylettuce
  • oliversalzburg
  • titanism