benji.monster/node_modules/capture-stack-trace
2020-01-03 21:48:09 +01:00
..
index.js upload site 2020-01-03 21:48:09 +01:00
license upload site 2020-01-03 21:48:09 +01:00
package.json upload site 2020-01-03 21:48:09 +01:00
readme.md upload site 2020-01-03 21:48:09 +01:00

capture-stack-trace Build Status

Ponyfill for Error.captureStackTrace

Install

$ npm install --save capture-stack-trace

Usage

var captureStackTrace = require('capture-stack-trace');

captureStackTrace({});
// => {stack: ...}

API

captureStackTrace(error)

error

Required
Type: Object

Target Object, that will recieve stack property.

License

MIT © Vsevolod Strukchinsky