Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ta-monitor

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ta-monitor

Front end analytics and error monitoring tool

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

TA Monitor

Usage

First, install the npm package with your favorite tool. We recommend yarn.

yarn add ta-monitor

Next, import and instantiate the base class.

import TAMonitor from 'ta-monitor'

const monitor = new TAMonitor()

export default monitor

This instance is what you should use to log events across your application. To wire these events up to external API's, you can subscribe to the monitor instance to take action on events as they are emitted.

Reporters

import TAMonitor from 'ta-monitor'
import consoleReporter from 'ta-monitor/lib/reporters/console'
import sentryReporter from 'ta-monitor/lib/reporters/sentry'

const monitor = new TAMonitor()

monitor.subscribe(consoleReporter())
monitor.subscribe(sentryReporter('your-api-key-here'))

export default monitor

FAQs

Package last updated on 01 Sep 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