two-dimension-scroll
Version:
A smooth scroll library that detects both horizontal and vertical scroll and converts them to vertical smooth scrolling
75 lines (74 loc) • 2.08 kB
JSON
{
"name": "two-dimension-scroll",
"version": "1.4.1",
"type": "module",
"description": "A smooth scroll library that detects both horizontal and vertical scroll and converts them to vertical smooth scrolling",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./react": {
"import": "./dist/react-hook.esm.js",
"require": "./dist/react-hook.js",
"types": "./dist/react-hook.d.ts"
},
"./dist/*": "./dist/*"
},
"scripts": {
"build": "npm run build:prod",
"build:dev": "rollup -c --environment NODE_ENV:development && tsc --emitDeclarationOnly",
"build:prod": "rollup -c --environment NODE_ENV:production && tsc --emitDeclarationOnly",
"prepublishOnly": "npm run build:prod",
"dev": "rollup -c --watch",
"serve": "python3 -m http.server 3000 || python -m http.server 3000 || npx serve -l 3000",
"serve-node": "node simple-server.js",
"serve-http": "npx http-server . -p 3000 --silent"
},
"keywords": [
"scroll",
"smooth-scroll",
"animation",
"two-dimension",
"horizontal-scroll",
"vertical-scroll",
"react",
"react-hook",
"typescript",
"nextjs",
"modal-scroll"
],
"author": "Park Jeong Gil",
"license": "MIT",
"peerDependencies": {
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-node-resolve": "^15.3.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^24.1.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"rollup": "^4.46.0",
"tslib": "^2.8.1",
"typescript": "^5.0.0"
},
"files": [
"dist/**/*",
"README.md",
"LICENSE"
]
}