not-enough-errors
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published


Not Enough Errors icon
Not Enough Errors

A little library that contains useful errors.

InstallationWhyExamplesDocsLicenseCredits

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

Package Sidebar

Install

npm i not-enough-errors

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.1 kB

Total Files

5

Last publish

Collaborators

  • stevancorre