error-handling-stack-traces
A simple helpful small library to parse and handle the error stack traces
Information
Supported for different browsers and platforms:
- Firefox
- Chrome
- Edge
- Internet Explorer (IE)
- Node
- ...
Usage
Install the errors-handling-stack-traces
package via manager.
Actual we use only npm
.
npm install errors-handling-stack-traces
Example code:
; { throw 'fail';} try ; catch error const parsing = ; console; finally console; // Logs: // [ // { // line: 4, // column: 8, // type: '', // name: 'foobar', // raw: ' at foo (/my-project/foo.ts:4:8)' // }, // ]
Note:
The type
will be the string.
If the string "native"
, then native code execution was detected.
License
MIT
See the license file