micro-notify
v1.0.0
Published
A simple wrapper to send micro errors to Bugsnag
Readme
micro-notify
A simple .notify wrapper to send micro errors to Bugsnag.
Usage
yarn add micro-notify # or npm install micro-notifyBasic Example
const notify = require('micro-notify')
const key = 'YOUR BUG SNAG API KEY'
module.exports = notify(key)(async (req, res) => {
throw Error('Test micro-notify')
})
Example with options
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')
})
Development
git clone [email protected]:pauldariye/micro-notify.git
cd micro-notify && yarn # or npm install
yarn testAcknowledgements
License
MIT
