1.0.2 • Published 3 years ago

errorhook v1.0.2

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

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 :copyright: 2022 LiquidDev. This project is under the MIT License.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago