stacky

Stacky parses stack traces from various sources, and formats them in readable ways.

Usage no npm install needed!

<script type="module">
  import stacky from 'https://cdn.skypack.dev/stacky';
</script>

README

NPM version Build Status

Stacky

Formatting

stacky.pretty(error.stack):

Example Pretty Stack

pretty Provides several options allowing you to tweak the output format to your liking.

Parsing

stacky.parse(error.stack):

[
  {
    method:   'thingCalled',
    location: 'some/file.js',
    line:     1,
    column:   2,
  }
  ...
]