A simple .notify
wrapper to send micro errors to Bugsnag.
yarn add micro-notify # or npm install micro-notify
const notify = require('micro-notify')
const key = 'YOUR BUG SNAG API KEY'
module.exports = notify(key)(async (req, res) => {
throw Error('Test micro-notify')
})
const notify = require('micro-notify')
const key = 'YOUR BUG SNAG API KEY'
module.exports = notify(key, { autoNotify: true })(async (req, res) => {
throw Error('Test micro-notify')
})
git clone [email protected]:pauldariye/micro-notify.git
cd micro-notify && yarn # or npm install
yarn test
MIT