0.0.1-security • Published 2 years ago
sentrybrowser5 v0.0.1-security
sentrybrowser5
A simple npm module for error tracking in the browser.
Installation
You can install this module via npm:
npm install sentrybrowser5
Usage
const sentrybrowser5 = require('sentrybrowser5');
// Configure the module with custom server options
sentrybrowser5.configure({
serverUrl: 'https://your-custom-server.com/error-log',
apiKey: 'api-key',
});
try {
// Code that throws an error
} catch (error) {
// Send the error to the configured server
sentrybrowser5.trackError(error);
}