react-bottom-scroll-listener
Version:
A simple React component that lets you listen for when you have scrolled to the bottom.
81 lines (80 loc) • 2.27 kB
JSON
{
"name": "react-bottom-scroll-listener",
"type": "commonjs",
"version": "5.2.0",
"author": "Karl J. Overå",
"license": "MIT",
"description": "A simple React component that lets you listen for when you have scrolled to the bottom.",
"repository": {
"url": "git+https://github.com/karl-run/react-bottom-scroll-listener.git"
},
"homepage": "https://github.com/karl-run/react-bottom-scroll-listener#readme",
"bugs": {
"url": "https://github.com/karl-run/react-bottom-scroll-listener/issues"
},
"keywords": [
"react",
"scrolling",
"bottom",
"listener",
"callback"
],
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/react-bottom-scroll-listener.mjs",
"require": "./dist/react-bottom-scroll-listener.js"
}
},
"main": "dist/react-bottom-scroll-listener.js",
"module": "dist/react-bottom-scroll-listener.mjs",
"types": "dist/index.d.ts",
"source": "src/index.tsx",
"packageManager": "yarn@4.9.1",
"engines": {
"node": ">=10"
},
"workspaces": [
"example"
],
"scripts": {
"build": "vite build && tsc",
"dev": "vite build --watch",
"build:example": "cd example && vite build --base=/react-bottom-scroll-listener/",
"dev:example": "cd example && vite",
"lint": "biome check src",
"test": "vitest --run --coverage",
"prepublish": "run-s build"
},
"dependencies": {
"lodash.debounce": "^4.0.8"
},
"peerDependencies": {
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@karl-run/prettier-config": "^1.0.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@types/lodash.debounce": "^4.0.9",
"@types/node": "^22.15.3",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-v8": "3.1.2",
"jsdom": "^26.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.8.3",
"vite": "^6.3.3",
"vitest": "^3.1.2"
},
"prettier": "@karl-run/prettier-config"
}