项目作者: bugsnag

项目描述 :
Javascript error handling tool for Bugsnag. Monitor and report JavaScript bugs & errors.
高级语言: TypeScript
项目地址: git://github.com/bugsnag/bugsnag-js.git
创建时间: 2013-02-05T19:06:33Z
项目社区:https://github.com/bugsnag/bugsnag-js

开源协议:MIT License

下载






SmartBear BugSnag logo


Error monitoring & reporting for JavaScript


Documentation
Build status
OpenSSF Scorecard

Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross-platform error detection for handled and unhandled errors with real-time error alerts and detailed diagnostic reports.

Learn more about JavaScript error reporting and React Native error reporting from Bugsnag.


This is a monorepo (managed with Lerna containing our universal error reporting client @bugsnag/js, and our React Native client @bugsnag/react-native, along with:

Etc. See packages for a full list of contents.

Getting started

  1. Create a Bugsnag account
  2. Complete the instructions in the integration guide
  3. Report handled exceptions using
    Bugsnag.notify()
  4. Customize your integration using the
    configuration options

Integrating with frameworks

Use the following plugins and guides to integrate Bugsnag with various frameworks.

Browser

Framework Bugsnag plugin Documentation
Vue @bugsnag/plugin-vue Vue docs
React @bugsnag/plugin-react React docs
Angular @bugsnag/plugin-angular Angular docs

Desktop

Framework Bugsnag notifier Documentation
Electron @bugsnag/electron Electron docs

Server

Framework Bugsnag plugin Documentation
Koa @bugsnag/plugin-koa Koa docs
Express @bugsnag/plugin-express Express docs
Restify @bugsnag/plugin-restify Restify docs

Mobile

Framework Bugsnag notifier Documentation
React Native @bugsnag/react-native React Native docs

Support

Contributing

Most updates to this repo will be made by Bugsnag employees. We are unable to accommodate significant external PRs such as features additions or any large refactoring, however minor fixes are welcome. See contributing for more information.

Development quick start

  1. # Clone the repository
  2. git clone git@github.com:bugsnag/bugsnag-js.git --recursive
  3. cd bugsnag-js
  4. # Install top-level dependencies
  5. npm i
  6. # Build the standalone notifiers and plugins
  7. npm run build
  8. # Run the unit tests
  9. npm run test:unit
  10. # Run tests for a specific package
  11. npm run test:unit -- --testPathPattern="packages/react-native"
  12. # Generate a code coverage report
  13. npm run test:unit -- --coverage
  14. # Run the linter
  15. npm run test:lint
  16. # Run the typescript compatibility tests
  17. npm run test:types

See contributing for more information.

License

All packages in this repository are released under the MIT License. See LICENSE.txt for details.