UNPKG

smooth-auto-scroll

Version:

Smooth auto-scroll React hook and component for ultra-smooth motion at any speed.

89 lines (88 loc) 2.48 kB
{ "name": "smooth-auto-scroll", "version": "0.2.2", "description": "Smooth auto-scroll React hook and component for ultra-smooth motion at any speed.", "license": "MIT", "author": "Marc Derhammer <marc.derhammer@gmail.com>", "repository": { "type": "git", "url": "git+https://github.com/marcderhammer/smooth-auto-scroll.git" }, "bugs": { "url": "https://github.com/marcderhammer/smooth-auto-scroll/issues" }, "homepage": "https://github.com/marcderhammer/smooth-auto-scroll#readme", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" } }, "files": [ "dist" ], "sideEffects": false, "peerDependencies": { "react": ">=17 || >=18" }, "devDependencies": { "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^14.1.2", "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.5.8", "@types/react": "^18.2.64", "@types/react-dom": "^18.2.19", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "@vitejs/plugin-react": "^4.3.0", "eslint": "^8.57.0", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^3.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "ts-jest": "^29.1.1", "tsup": "^8.0.0", "typescript": "^5.4.0", "vite": "^5.4.0" }, "scripts": { "build": "tsup", "dev": "tsup --watch", "clean": "rm -rf dist", "lint": "eslint src demo --ext .ts,.tsx --report-unused-disable-directives", "lint:fix": "npm run lint -- --fix", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "prepublishOnly": "if [ \"$CI\" != \"true\" ]; then echo '⚠️ Use GitHub Actions for publishing. Go to Actions → Manual Release' && exit 1; fi", "demo": "vite --port 3001", "demo:build": "vite build", "demo:preview": "vite preview", "publish:check": "npm publish --dry-run" }, "keywords": [ "react", "scroll", "autoscroll", "smooth", "hook", "component", "continuous", "animation", "typescript", "buttery-smooth", "smooth-scrolling", "auto-scroll", "react-hook", "react-component", "scrolling", "ui", "frontend" ] }