Mohammad Asif cf937194cb Removed un-waned things 1. 1 year ago
..
dist cf937194cb Removed un-waned things 1. 1 year ago
node_modules cf937194cb Removed un-waned things 1. 1 year ago
LICENSE cf937194cb Removed un-waned things 1. 1 year ago
README.md cf937194cb Removed un-waned things 1. 1 year ago
package.json cf937194cb Removed un-waned things 1. 1 year ago

README.md

Build Status dependencies dev-dependencies

StackTrace-Parser

This parser parses a stack trace from any browser or Node.js and returns an array of hashes each representing a line.

The goal here is to support every browser even old Internet Explorer stack traces will work.

Install

npm install stacktrace-parser

Usage

import * as stackTraceParser from 'stacktrace-parser';

try {
  throw new Error('My error');
} catch(ex) {
  const stack = stackTraceParser.parse(ex.stack);
}

Every line contains five properties: lineNumber, methodName, arguments, file and column (if applicable).

TODOs

  • parse stack traces from other sources (Ruby, etc) (v0.3)

Contribution

If you want to contrib, then do you thing, write tests, run npm run test ensure that everything is green, commit and make the pull request. Or just write an issue, or let's talk.

Contributors

LICENSE

The MIT License (MIT)