UNPKG

react-bottom-scroll-listener

Version:

A simple React component that lets you listen for when you have scrolled to the bottom.

77 lines (76 loc) 2.44 kB
{ "name": "react-bottom-scroll-listener", "version": "5.1.0", "description": "A simple React component that lets you listen for when you have scrolled to the bottom.", "repository": "https://github.com/karl-run/react-bottom-scroll-listener", "keywords": [ "react", "scrolling", "bottom", "listener", "callback" ], "author": "Karl J. Overå", "license": "MIT", "homepage": "https://github.com/karl-run/react-bottom-scroll-listener#readme", "bugs": { "url": "https://github.com/karl-run/react-bottom-scroll-listener/issues" }, "files": [ "dist" ], "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/index.tsx", "engines": { "node": ">=10" }, "scripts": { "build": "microbundle-crl --no-compress --format modern,cjs", "start": "microbundle-crl watch --no-compress --format modern,cjs", "prepublish": "run-s build", "test": "run-s test:unit test:lint test:build", "test:build": "run-s build", "test:lint": "eslint src --ext .ts,.tsx", "test:unit": "cross-env CI=1 react-scripts test --coverage", "test:watch": "react-scripts test --env=jsdom", "predeploy": "cd example && yarn install && yarn run build", "deploy": "gh-pages -d example/build" }, "dependencies": { "lodash.debounce": "^4.0.8" }, "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { "@testing-library/react-hooks": "^8.0.1", "@types/jest": "^28.1.6", "@types/lodash.debounce": "^4.0.7", "@types/react": "^18.0.15", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.32.0", "@typescript-eslint/parser": "^5.32.0", "babel-eslint": "^10.0.3", "cross-env": "^7.0.2", "eslint": "8.21.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.6.1", "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "gh-pages": "^4.0.0", "microbundle-crl": "^0.13.10", "npm-run-all": "^4.1.5", "prettier": "^2.7.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "^5.0.1", "react-test-renderer": "^18.0.2" } }