UNPKG

smoothscroll-anchor-polyfill

Version:

Apply smooth scroll to anchor links to replicate CSS scroll-behavior

111 lines 2.35 kB
{ "name": "smoothscroll-anchor-polyfill", "version": "1.3.4", "description": "Apply smooth scroll to anchor links to replicate CSS scroll-behavior", "main": "dist/index.js", "unpkg": "dist/index.min.js", "module": "dist/index.mjs", "files": [ "dist/*", "src/*", "!dist/.gitkeep" ], "packageManager": "yarn@3.1.0", "browserslist": [ "last 2 versions", "> 1%", "ie > 8", "not dead" ], "scripts": { "test": "jest --verbose", "build": "rollup --config", "prepack": "yarn build" }, "repository": { "type": "git", "url": "git+https://github.com/jonaskuske/smoothscroll-anchor-polyfill.git" }, "keywords": [ "smoothscroll", "scrollbehavior", "scroll-behavior", "scroll", "polyfill", "hashchange", "anchor", "link", "smooth" ], "author": "Jonas Kuske", "license": "MIT", "bugs": { "url": "https://github.com/jonaskuske/smoothscroll-anchor-polyfill/issues" }, "homepage": "https://jonaskuske.github.io/smoothscroll-anchor-polyfill", "devDependencies": { "@babel/core": "^7.16.0", "@babel/preset-env": "^7.16.0", "@rollup/plugin-babel": "^5.3.0", "babel-jest": "^27.3.1", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.3.1", "prettier": "^2.4.1", "rollup": "^2.60.0", "rollup-plugin-filesize": "^9.1.1", "rollup-plugin-terser": "^7.0.2" }, "babel": { "moduleId": "SmoothscrollAnchorPolyfill", "env": { "production": { "presets": [ [ "@babel/preset-env", { "modules": "umd" } ] ] }, "test": { "presets": [ [ "@babel/preset-env" ] ] } } }, "eslintConfig": { "root": true, "extends": [ "eslint:recommended", "plugin:prettier/recommended" ], "env": { "browser": true }, "parserOptions": { "sourceType": "module", "ecmaVersion": 2021 }, "rules": { "no-empty": "off" } }, "eslintIgnore": [ "dist", ".yarn", ".pnp.cjs", ".pnp.loader.mjs" ], "prettier": { "endOfLine": "auto", "singleQuote": true, "semi": false, "printWidth": 100 } }