main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[d565449] | 1 | stack-generator
|
---|
| 2 | ===============
|
---|
| 3 | [![Build Status](https://img.shields.io/github/workflow/status/stacktracejs/stack-generator/Continuous%20Integration/master?logo=github&style=flat-square)](https://github.com/stacktracejs/stack-generator/actions?query=workflow%3AContinuous+Integration+branch%3Amaster)
|
---|
| 4 | [![Coverage Status](https://img.shields.io/coveralls/stacktracejs/stack-generator.svg?style=flat-square)](https://coveralls.io/r/stacktracejs/stack-generator?branch=master)
|
---|
| 5 | [![GitHub license](https://img.shields.io/github/license/stacktracejs/stack-generator.svg?style=flat-square)](https://opensource.org/licenses/MIT)
|
---|
| 6 | [![dependencies](https://img.shields.io/badge/dependencies-1-green.svg?style=flat-square)](https://github.com/stacktracejs/stack-generator/releases)
|
---|
| 7 | [![module format](https://img.shields.io/badge/module%20format-umd-lightgrey.svg?style=flat-square&colorB=ff69b4)](https://github.com/stacktracejs/stack-generator/releases)
|
---|
| 8 | [![code of conduct](https://img.shields.io/badge/code%20of-conduct-lightgrey.svg?style=flat-square&colorB=ff69b4)](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 | [![Sauce Test Status](https://saucelabs.com/browser-matrix/stacktracejs.svg)](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.