not-enough-errors
v1.0.0
Published
A little library that contains useful errors
Downloads
3
Maintainers
Readme
Installation
$ npm install not-enough-errors
Why
I really think having more descriptive errors is an important thing, and TypeScript/JavaScript is lacking meaningful errors.
With this little & simple library, you'll not be forced to write things such as
throw new Error("This function is not implemented");
But
throw new NotImplementedError("funcName");
/**
* stderr:
*
* NotImplementedError: This function is not implemented
* Function name: funcName
*/
With this library, you'll be able to write good error descriptions !
License
This project is MIT licensed.
Credits
- Icon: Close icons created by Freepik - Flaticon
- README design: github.com/amitmerchant1990