$ cnpm install capture-stack-trace
Ponyfill for Error.captureStackTrace
$ npm install --save capture-stack-trace
var captureStackTrace = require('capture-stack-trace');
captureStackTrace({});
// => {stack: ...}
Required
Type: Object
Target Object, that will recieve stack property.
MIT © Vsevolod Strukchinsky
Copyright 2013 - present © cnpmjs.org