Package Exports
- code-preview-from-error
- code-preview-from-error/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-preview-from-error) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
code-preview-from-error
Preview the code an Error came from
This module:
- Parses an Error's
stackproperty - 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