{"_id":"@bvue/touch-emulator","name":"@bvue/touch-emulator","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bvue/touch-emulator","version":"0.0.1","description":"BVue touch emulator","type":"module","main":"lib/index.js","module":"lib/index.mjs","scripts":{"build":"node ./build.js","prepare":"pnpm build"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/bvue-ui/bvue.git","directory":"packages/bvue-touch-emulator"},"bugs":{"url":"https://github.com/bvue-ui/bvue/issues"},"author":{"name":"scriptpower"},"license":"MIT","_id":"@bvue/touch-emulator@0.0.1","gitHead":"e381da60a4a774bb23e34df0452050e54c255f1b","homepage":"https://github.com/bvue-ui/bvue#readme","_nodeVersion":"22.0.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-4EiqKDwWec5VNhI9Rg8Pf/h0SINusnB6K3W5bwcC6vWCqKPcACthmBZivDpkPVijUgNJpSvhI3WyFMQg+b3Qhg==","shasum":"e23a35af546f6cab75031051c5adbeaa59f62c4a","tarball":"https://registry.npmjs.org/@bvue/touch-emulator/-/touch-emulator-0.0.1.tgz","fileCount":122,"unpackedSize":168396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy8LT6QgUHcONALlYy6W5SzJwAUniGLci3UM1HmsSqtwIgdrDK0VxJ97aYeDk/H4Cjj1AA8lFoMk/QqjrY0FMT8/E="}]},"_npmUser":{"name":"scriptpower","email":"scriptpower@qq.com"},"directories":{},"maintainers":[{"name":"scriptpower","email":"scriptpower@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/touch-emulator_0.0.1_1717201516677_0.22066734954087264"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-01T00:25:16.560Z","0.0.1":"2024-06-01T00:25:16.916Z","modified":"2024-06-01T00:25:17.255Z"},"maintainers":[{"name":"scriptpower","email":"scriptpower@qq.com"}],"description":"BVue touch emulator","homepage":"https://github.com/bvue-ui/bvue#readme","repository":{"type":"git","url":"git+https://github.com/bvue-ui/bvue.git","directory":"packages/bvue-touch-emulator"},"author":{"name":"scriptpower"},"bugs":{"url":"https://github.com/bvue-ui/bvue/issues"},"license":"MIT","readme":"# BVue Touch Emulator\n\n在桌面端上模拟移动端 touch 事件，实现方式来自于 [hammerjs/touchemulator](https://github.com/hammerjs/touchemulator).\n\n## Install\n\n```shell\n# with npm\nnpm i @bvue/touch-emulator\n\n# with yarn\nyarn add @bvue/touch-emulator\n\n# with pnpm\npnpm add @bvue/touch-emulator\n\n# with Bun\nbun add @bvue/touch-emulator\n```\n\n## 使用指南\n\n直接在代码中引入模块即可，模块会自动完成初始化并生效\n\n```js\nimport '@bvue/touch-emulator';\n```\n\n## CDN 引入\n\n```html\n<script src=\"https://fastly.jsdelivr.net/npm/@bvue/touch-emulator\"></script>\n```\n\n## 禁用 touch 模拟\n\n在标签上添加 `data-no-touch-simulate` 属性后，可以使这个标签（以及它的子元素）不触发 `touch` 模拟事件。\n\n```html\n<div data-no-touch-simulate />\n```\n","readmeFilename":"README.md"}