main
Last change
on this file since 0c6b92a was d565449, checked in by stefan toskovski <stefantoska84@…>, 9 months ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | stack-generator
|
---|
2 | ===============
|
---|
3 | [](https://github.com/stacktracejs/stack-generator/actions?query=workflow%3AContinuous+Integration+branch%3Amaster)
|
---|
4 | [](https://coveralls.io/r/stacktracejs/stack-generator?branch=master)
|
---|
5 | [](https://opensource.org/licenses/MIT)
|
---|
6 | [](https://github.com/stacktracejs/stack-generator/releases)
|
---|
7 | [](https://github.com/stacktracejs/stack-generator/releases)
|
---|
8 | [](http://todogroup.org/opencodeofconduct/#stacktrace.js/me@eriwen.com)
|
---|
9 |
|
---|
10 | Generate artificial stacktrace by walking `arguments.callee.caller` chain. **Works everywhere except [strict-mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode)**.
|
---|
11 |
|
---|
12 | ## Usage
|
---|
13 | ```
|
---|
14 | StackGenerator.backtrace()
|
---|
15 |
|
---|
16 | => [StackFrame({functionName: 'foo', args: []}), StackFrame(..), StackFrame(..)]
|
---|
17 | ```
|
---|
18 |
|
---|
19 | ## Installation
|
---|
20 | ```
|
---|
21 | npm install stack-generator
|
---|
22 | bower install stack-generator
|
---|
23 | https://raw.githubusercontent.com/stacktracejs/stack-generator/master/dist/stack-generator.min.js
|
---|
24 | ```
|
---|
25 |
|
---|
26 | ## Browser Support
|
---|
27 | [](https://saucelabs.com/u/stacktracejs)
|
---|
28 |
|
---|
29 | ## Contributing
|
---|
30 | Want to be listed as a *Contributor*? Start with the [Contributing Guide](CONTRIBUTING.md)!
|
---|
Note:
See
TracBrowser
for help on using the repository browser.