@phucbm/magnetic-button
Version:
A lightweight TypeScript library that creates smooth magnetic attraction effects for HTML elements
74 lines (73 loc) • 1.68 kB
JSON
{
"name": "@phucbm/magnetic-button",
"version": "0.0.3",
"description": "A lightweight TypeScript library that creates smooth magnetic attraction effects for HTML elements",
"main": "dist/index.js",
"module": "dist/index.js",
"browser": "dist/magnetic-button.js",
"types": "dist/index.d.mts",
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "vite",
"build": "npm run clean && tsup",
"build:demo": "vite build",
"clean": "rm -rf dist dist-demo",
"preview": "vite preview",
"prepublishOnly": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"magnetic",
"button",
"hover",
"animation",
"typescript",
"ui",
"interaction"
],
"author": {
"name": "phucbm",
"url": "https://github.com/phucbm"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/phucbm/magnetic-button.git"
},
"bugs": {
"url": "https://github.com/phucbm/magnetic-button/issues"
},
"homepage": "https://phucbm.github.io/magnetic-button/",
"devDependencies": {
"@types/lodash": "^4.17.19",
"@types/node": "^24.0.3",
"lodash": "^4.17.21",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"vite": "^6.3.5"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.js"
},
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=16"
},
"sideEffects": false,
"dependencies": {
"@phucbm/lerp": "^1.0.0"
}
}