browser-interaction-time
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "browser-interaction-time", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -13,4 +13,5 @@ <p align="left"> | ||
[![](https://data.jsdelivr.com/v1/package/npm/browser-interaction-time/badge?style=rounded)](https://www.jsdelivr.com/package/npm/browser-interaction-time) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Greenkeeper badge](https://badges.greenkeeper.io/atlassian/browser-interaction-time.svg)](https://greenkeeper.io/)[![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=VW8xY202NzRkVXlDd3Vlakg3aGJmSnVEUkpzOHdNeFVBZzVScGtLbFJpOD0tLVdRMTlYRHlRdXhWRGVNVTcrSjhHdFE9PQ==--08a6dba26f0b788941298839179eb3027253e904%)](https://www.browserstack.com/automate/public-build/VW8xY202NzRkVXlDd3Vlakg3aGJmSnVEUkpzOHdNeFVBZzVScGtLbFJpOD0tLVdRMTlYRHlRdXhWRGVNVTcrSjhHdFE9PQ==--08a6dba26f0b788941298839179eb3027253e904%) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Greenkeeper badge](https://badges.greenkeeper.io/atlassian/browser-interaction-time.svg)](https://greenkeeper.io/) | ||
[![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=MHBVVW5jR216ZVlxSjFSRkVzWEpYbVVxWmlOV09vU3hMUnc0SUFoWWZIQT0tLWpMNFFnRTVsVW1PS0UydUJ2Y0NFcnc9PQ==--b941abc4fdf74e5670e646c5fa5c314a1787d916)](https://www.browserstack.com/automate/public-build/MHBVVW5jR216ZVlxSjFSRkVzWEpYbVVxWmlOV09vU3hMUnc0SUFoWWZIQT0tLWpMNFFnRTVsVW1PS0UydUJ2Y0NFcnc9PQ==--b941abc4fdf74e5670e646c5fa5c314a1787d916) | ||
@@ -98,2 +99,27 @@ browser-interaction-time lets you track the time a user is active on your webpage while ignoring time spent on a different tab or with a minimized window. It also ignores the time spent while the user is idle on a web page meaning after a certain amount of time (idleTimeoutMs) without any user interactions (scroll, mousemovement etc) the time will also stop until the next user interaction. | ||
### Set a mark on modified timeline (see https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark) | ||
```js | ||
browserInteractionTime.mark('a-mark') | ||
browserInteractionTime.mark('b-mark') | ||
``` | ||
### Get marks by name (see https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark) | ||
```js | ||
browserInteractionTime.getMarks('a-mark') | ||
``` | ||
### Set measure time between 2 marks (see https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure) | ||
```js | ||
browserInteractionTime.measure('a-measure', 'a-mark', 'b-mark') | ||
``` | ||
### Get measure by name | ||
```js | ||
browserInteractionTime.getMeasures('a-measure') // Array of measures with name | ||
``` | ||
### Get Time in Milliseconds | ||
@@ -100,0 +126,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74413
164