code-preview-from-error
v1.0.2
Published
Generates a preview of the part of the code where an Error came from
Downloads
76
Maintainers
Readme
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:
License
MIT