Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfware/activity-monitor
Browser activity monitor
https://github.com/cfware/activity-monitor
Last synced: 29 days ago
JSON representation
Browser activity monitor
- Host: GitHub
- URL: https://github.com/cfware/activity-monitor
- Owner: cfware
- License: mit
- Created: 2019-03-23T04:35:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T20:16:34.000Z (about 1 year ago)
- Last Synced: 2024-10-30T15:14:14.199Z (about 2 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @cfware/activity-monitor [![NPM Version][npm-image]][npm-url]
Browser activity monitor.
## Usage
```js
import ActivityMonitor from '@cfware/activity-monitor';const activityMonitor = new ActivityMonitor(() => {
if (!activityMonitor.activity) {
console.log('Inactive');
activityMonitor.disable();
}
});activityMonitor.enable();
```[npm-image]: https://img.shields.io/npm/v/@cfware/activity-monitor.svg
[npm-url]: https://npmjs.org/package/@cfware/activity-monitor