This package is deprecated! Please use tiny-error instead.
Never worry about catching errors again.
A tiny wrapper around tiny-error.
Catching errors to print a message to the user? Don’t bother! Just throw them and let them halt your program. They’ll still look pretty darn clean.
You write:
const cleanError = require('clean-error')('my-amazing-program');
throw cleanError('Oops!');
The user sees:
Coming soon…
$ npm install clean-error