Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 20-Sep-2020 | - | ||||
package.json | H A D | 20-Sep-2020 | 1.6 KiB | 61 | 60 | |
readme.md | H A D | 26-Oct-1985 | 591 | 37 | 20 |
readme.md
1# capture-stack-trace [![Build Status](https://travis-ci.org/floatdrop/capture-stack-trace.svg?branch=master)](https://travis-ci.org/floatdrop/capture-stack-trace) 2 3> Ponyfill for Error.captureStackTrace 4 5 6## Install 7 8``` 9$ npm install --save capture-stack-trace 10``` 11 12 13## Usage 14 15```js 16var captureStackTrace = require('capture-stack-trace'); 17 18captureStackTrace({}); 19// => {stack: ...} 20``` 21 22 23## API 24 25### captureStackTrace(error) 26 27#### error 28 29*Required* 30Type: `Object` 31 32Target Object, that will recieve stack property. 33 34## License 35 36MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop) 37