@trywatchman/watchman
v0.0.4
Published
Smart error reporting for applications in production environments
Downloads
1
Maintainers
Readme
Watchman
This package allows you to easily catch errors in your code with Watchman
NB: You need to have a Watchman account to use this package. Sign up at https://www.trywatchman.com/
Installation
npm install watchman
Usage
import Watchman from 'watchman'
const watchman = new Watchman('your-api-key', 'your-environment')
async function doSomething() {
try {
// doing something
} catch (error) {
watchman.capture(error)
}
}