Skip to content

suchipi/code-preview-from-error

Repository files navigation

code-preview-from-error

Preview the code an Error came from

This module:

  • Parses an Error's stack property
  • Identifies its location on disk
  • If that file exists, it reads it
  • Then, it creates a nice string with colors that shows the part of the file where the error was thrown from.

Sample output string:

sample output of code-preview-from-error

License

MIT

About

Preview the code an Error came from

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published