react-scroll-tracker
Version:
A React hook for tracking scroll depth with TypeScript support and SSR compatibility
62 lines (61 loc) • 1.48 kB
JSON
{
"name": "react-scroll-tracker",
"version": "2.0.0",
"description": "A React hook for tracking scroll depth with TypeScript support and SSR compatibility",
"main": "dist/index.js",
"files": [
"dist/**/*.js",
"dist/**/*.d.ts",
"!dist/**/*.test.*",
"!dist/tests"
],
"keywords": [
"react",
"scroll",
"tracking",
"hook",
"analytics",
"scroll-depth",
"typescript",
"ssr",
"nextjs"
],
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/sampennington/react-scroll-tracker.git"
},
"homepage": "https://github.com/sampennington/react-scroll-tracker",
"bugs": {
"url": "https://github.com/sampennington/react-scroll-tracker/issues"
},
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"build": "rimraf dist/ && tsc",
"prepublishOnly": "npm run build && npm test"
},
"author": "sam pennington",
"license": "ISC",
"peerDependencies": {
"react": ">=16.8.0"
},
"np": {
"contents": "dist"
},
"devDependencies": {
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.19",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.3.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.2.0",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
}
}