code-preview-from-error
Version:
Generates a preview of the part of the code where an Error came from
19 lines (11 loc) • 481 B
Markdown
# 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