@dawsonbotsford/isomorphic-sentry
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

isomorphic-sentry

Isomorphic sentry client for node and browser.

Installation

NPM

$ npm install --save isomorphic-sentry

Yarn

$ yarn add isomorphic-sentry

Usage

import {captureMessage, init, SDK_NAME} from "isomorphic-sentry";

if (SDK_NAME === "sentry.javascript.browser") {
    // Browser configuration
    init({dsn: "__DSN__"});
} else {
    // Node configuration
    init({dsn: "__DSN__"});
}

captureMessage("Hello, world!");

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @dawsonbotsford/isomorphic-sentry

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.52 kB

Total Files

9

Last publish

Collaborators

  • dawsonbotsford
  • magobankless