{"name":"@vant/touch-emulator","version":"1.5.0","description":"Vant touch emulator","main":"dist/index.js","module":"dist/index.mjs","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/vant-ui/vant.git","directory":"packages/vant-touch-emulator"},"bugs":{"url":"https://github.com/vant-ui/vant/issues"},"author":{"name":"chenjiahan"},"license":"MIT","scripts":{"build":"node ./build.js"},"_id":"@vant/touch-emulator@1.5.0","homepage":"https://github.com/vant-ui/vant#readme","_integrity":"sha512-/L2W/pehJLHGftSIiG31E0P8nibeA+SBcNptdyRymukM9zQ4Pn5Ku7Cndx5oXsY5SE9uyHaJ4M9oj+q2AROHhQ==","_resolved":"/private/var/folders/lm/jz6s6y4s7ndg718_hskp0j600000gn/T/b40abfaef56fb91908f53a4c73dbe5b8/vant-touch-emulator-1.5.0.tgz","_from":"file:vant-touch-emulator-1.5.0.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-/L2W/pehJLHGftSIiG31E0P8nibeA+SBcNptdyRymukM9zQ4Pn5Ku7Cndx5oXsY5SE9uyHaJ4M9oj+q2AROHhQ==","shasum":"caa04fcbdb52c6d513a878d91ebd5fe907249038","tarball":"http://registry-npm.ywwl.com/@vant/touch-emulator/download/@vant/touch-emulator-1.5.0.tgz","fileCount":9,"unpackedSize":19065,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTqP2DcI5fhIVmqqO/mhJ/d5nbT5V8dFgoaUwUgSQy7QIgN/l9GkZDRFH8EPBaFKnymSnxAAln3HX0IkE0ombWYyI="}],"size":3897,"noattachment":false,"key":"/@vant/touch-emulator/-/@vant/touch-emulator-1.5.0.tgz"},"_npmUser":{"name":"chenjiahan","email":"416417567@163.com"},"directories":{},"maintainers":[{"name":"chenjiahan","email":"416417567@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/touch-emulator_1.5.0_1766912648381_0.4674073375507328"},"_hasShrinkwrap":false,"readme":"# Vant Touch Emulator\n\n在桌面端上模拟移动端 touch 事件，实现方式来自于 [hammerjs/touchemulator](https://github.com/hammerjs/touchemulator).\n\n## Install\n\n```shell\n# with npm\nnpm i @vant/touch-emulator\n\n# with yarn\nyarn add @vant/touch-emulator\n\n# with pnpm\npnpm add @vant/touch-emulator\n\n# with Bun\nbun add @vant/touch-emulator\n```\n\n## 使用指南\n\n直接在代码中引入模块即可，模块会自动完成初始化并生效\n\n```js\nimport '@vant/touch-emulator';\n```\n\n## CDN 引入\n\n```html\n<script src=\"https://fastly.jsdelivr.net/npm/@vant/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","publish_time":1766912648518,"_cnpm_publish_time":1766912648518,"dist-tags":{"beta":"0.0.1-beta.0","latest":"1.5.0"}}