use-page-view
Version:
A React hook for tracking page views and user engagement time. This hook provides real-time tracking of how long users spend on a page, their activity status, and the ability to persist time tracking across page reloads.
72 lines (71 loc) • 2.21 kB
JSON
{
"name": "use-page-view",
"version": "1.0.1",
"description": "A React hook for tracking page views and user engagement time. This hook provides real-time tracking of how long users spend on a page, their activity status, and the ability to persist time tracking across page reloads.",
"type": "module",
"main": "dist/index.js",
"files": [
"dist"
],
"keywords": [
"react",
"hooks",
"page-view",
"analytics",
"tracking",
"engagement",
"time-tracking",
"localstorage",
"persistence",
"typescript",
"react-hooks",
"user-activity",
"page-visibility",
"performance-monitoring"
],
"author": "Christopher S. Aondona <me@codingsimba.com> (https://codingsimba.com)",
"repository": {
"type": "git",
"url": "git+https://github.com/christophersesugh/use-page-view.git"
},
"homepage": "https://github.com/christophersesugh/use-page-view",
"bugs": {
"url": "https://github.com/christophersesugh/use-page-view/issues"
},
"scripts": {
"build": "tsdown",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "tsc",
"format": "prettier --write .",
"format:check": "prettier . --check",
"exports:check": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
"release:version": "changeset version",
"release:local": "changeset && changeset version && changeset publish",
"prepublishOnly": "npm run ci",
"ci": "npm run build && npm run format:check && npm run lint && npm run exports:check && npm run test"
},
"license": "MIT",
"dependencies": {
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.1",
"@changesets/cli": "^2.29.4",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.0",
"@vitejs/plugin-react": "^4.5.1",
"@vitest/browser": "^3.2.0",
"@vitest/coverage-v8": "^3.2.2",
"playwright": "^1.52.0",
"prettier": "^3.5.3",
"tsdown": "^0.12.6",
"typescript": "^5.8.3",
"vitest": "^3.2.0",
"vitest-browser-react": "^0.2.0"
}
}