stacktrace-parser
Parses every stack trace into a nicely formatted array of hashes.
Last updated 13 days ago by calamari .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stacktrace-parser 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 0.1.8                                ...           latest (13 days ago)

8 Versions

  • 0.1.8                                ...           13 days ago
  • 0.1.7                                ...           3 months ago
  • 0.1.6                                ...           7 months ago
  • 0.1.5                                ...           8 months ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 247
This Week 2,506
This Month 9,694
Last Day 1,160
Last Week 6,858
Last Month 24,498
Dependencies (1)
Dev Dependencies (16)
Dependents (130)

Copyright 2014 - 2016 © taobao.org |