Skip to content

dariye/micro-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-notify

MaintainabilityTest CoverageBuild Statusdependencies Status devDependencies StatusGitHub

A simple .notify wrapper to send micro errors to Bugsnag.

Usage

yarn add micro-notify # or npm install micro-notify

Basic 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 test

Acknowledgements

License

MIT

About

Send errors to Bugsnag from a 'micro' service

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published