Installation • Why • Examples • Docs • License • Credits
$ npm install not-enough-errors
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 !
This project is MIT licensed.
- Icon: Close icons created by Freepik - Flaticon
- README design: github.com/amitmerchant1990