errorhook

Version License: MIT Twitter: liquidpc

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

🤝 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 Šī¸ 2022 LiquidDev. This project is under the MIT License.

GitHub

View Github