1.0.2 • Published 2 years ago

code-preview-from-error v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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