🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

browser-activity-monitor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-activity-monitor

A simple activity monitor to alert you when the user becomes active or inactive

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

browser-activity-monitor Build Status NPM MIT

A simple activity monitor to alert you when the user becomes active or inactive

Installation

npm install browser-activity-monitor --save

Usage

import { ActivityMonitor, ACTIVE, INACTIVE } from 'browser-activity-monitor'

const monitor = new ActivityMonitor(document)
monitor.on(ACTIVE, () => console.log('User is active!'))
monitor.on(INACTIVE, () => console.log('User is inactive!'))

// ...
monitor.destroy()

Tests

npm test

License

Apache-2.0

Keywords

browser

FAQs

Package last updated on 22 Mar 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