Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

raven-js

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raven-js

Raven.js is the official browser JavaScript client for [Sentry](https://sentry.io/).

  • 3.16.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49K
decreased by-61.65%
Maintainers
3
Weekly downloads
 
Created

What is raven-js?

The raven-js npm package is a JavaScript client for Sentry, a real-time error tracking system. It allows developers to capture and report errors in their web applications, providing detailed context and stack traces to help diagnose and fix issues quickly.

What are raven-js's main functionalities?

Error Reporting

This feature allows you to capture and report exceptions to Sentry. By configuring Raven with your Sentry DSN and using the captureException method, you can send error details to Sentry for further analysis.

Raven.config('your-dsn').install();

try {
  // Code that may throw an error
} catch (e) {
  Raven.captureException(e);
}

Breadcrumbs

Breadcrumbs are a way to record events that lead up to an error. This feature helps in understanding the sequence of actions that caused the error, making it easier to reproduce and fix.

Raven.config('your-dsn').install();

Raven.captureBreadcrumb({
  message: 'User clicked on button',
  category: 'ui',
  level: 'info'
});

Context

This feature allows you to add additional context to your error reports, such as user information and extra data. This can be very useful for debugging and understanding the environment in which the error occurred.

Raven.config('your-dsn').install();

Raven.setUserContext({
  email: 'user@example.com',
  id: '12345'
});

Raven.setExtraContext({
  debug: true
});

Other packages similar to raven-js

Keywords

FAQs

Package last updated on 13 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc