error-clean-stack
errors with clean stacks
Install
npm install --save error-clean-stack
yarn add error-clean-stack
Import
// ES2015
// CommonJSvar cleanErrors =
Errors
All errors are exported as named exports.
ErrorReferenceErrorEvalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIError
Example:
examples/error.js
const Error = throw
$ node examples/error.jsC:\xampp\htdocs\error-clean-stack\examples\error.js:5 throw new ^ Error at b at a at Object.<anonymous>
Contributing
All pull requests and issues welcome!
If you're not sure how, check out the great video tutorials on egghead.io!
License
MIT © Sam Gluck