summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/capture-stack-trace/readme.md
blob: a944ab961b588f0057ba4def934f5e93d1c7511a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# capture-stack-trace [![Build Status](https://travis-ci.org/floatdrop/capture-stack-trace.svg?branch=master)](https://travis-ci.org/floatdrop/capture-stack-trace)

> Ponyfill for Error.captureStackTrace


## Install

```
$ npm install --save capture-stack-trace
```


## Usage

```js
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](http://github.com/floatdrop)