1.0.2 • Published 3 years ago
errorhook v1.0.2
A simple way to track errors using Discord.
📓 Prerequisites
- node >= 9.0.0
- npm >= 5.0.0
📁 Install
npm i errorhook
📗 Usage
Normal Errors
var errorhook = require('errorhook');
try {
// your code
} catch(e) {
errorhook(e, discord_webhook_url)
}
Unhandled Rejections
var errorhook = require('errorhook');
// your code
process.on('unhandledRejection', (e) => {
errorhook(e, discord_webhook_url)
})
👤 Author
LiquidDev#5169
- Website: liquid.gq
- Twitter: @liquidpc
- Github: @ThinLiquid
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
⭐ Support the package
Support the package by giving it a 🌟.
📝 License
Copyright :copyright: 2022 LiquidDev. This project is under the MIT License.