capture-stack-trace

Error.captureStackTrace ponyfill

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
capture-stack-trace
2611.0.14 years ago7 years agoMinified + gzip package size for capture-stack-trace in KB

Readme

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