micro-sentry

2.0.0 • Public • Published

micro-sentry

micro-sentry allows you to send micro errors to Sentry.

Installation

$ npm install --save micro-sentry

OR

$ yarn add micro-sentry

Example

const sendToSentry = require('micro-sentry');
const url = 'https://<key>:<secret>@sentry.io/<project>';

module.exports = sendToSentry(url)(async (request, response) => {
    throw Error('This will be sent to Sentry!');
});

Development

$ git clone https://github.com/tanmulabs/micro-sentry.git
$ cd micro-sentry
$ npm install
$ npm test

Readme

Keywords

Package Sidebar

Install

npm i micro-sentry

Weekly Downloads

24

Version

2.0.0

License

MIT

Unpacked Size

7.8 kB

Total Files

6

Last publish

Collaborators

  • captainsafia