This package is production ready and has 100% test coverage so don't hesitate to use it in an enterprise application. Yeah... that would be fun!
Tables of Contents
Install
npm:
npm install damnerror
Yarn:
yarn add damnerror
GitHub:
git clone https://github.com/mazecodes/damnerror.git
Usage
Wanna throw a table? I got you:
const DamnError = require('damnerror');
try {
throw new DamnError();
} catch (err) {
console.log(err.message); // (╯°□°)╯︵ ┻━┻
}
Throwing tables isn't your thing? Fine, you can shout as well!
const DamnError = require('damnerror');
try {
throw new DamnError('Password is wrong');
} catch (err) {
console.log(err.message); // ૮( ᵒ̌▱๋ᵒ̌ )ა PASSWORD IS WRONG!!!
}
Run tests
npm run test
Contributing
All contributions, issues and feature requests are welcome!
Please feel free to check issues page.
- Fork the project
- Create your feature branch (
git checkout -b feature/AwesomeFeature
) - Commit your changes (
git commit -m "Add Awesome Feature"
) - Push to the branch (
git push origin feature/AwesomeFeature
) - Open a Pull Request
Author
Maze Peterson:
Show your support
Give a
License
MIT © Maze Peterson