1.0.0 • Published 3 years ago

not-enough-errors v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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