Have ideas to improve npm?Join in the discussion! »

capture-stack-trace

1.0.1 • Public • Published

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

Install

npm i capture-stack-trace

DownloadsWeekly Downloads

3,210,622

Version

1.0.1

License

MIT

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • avatar