{"_id":"@caikengren/uni-hooks","_rev":"4-6b7cf225dd4018a23b6740ed8be8dbd6","name":"@caikengren/uni-hooks","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.0":{"name":"@caikengren/uni-hooks","version":"1.1.0","keywords":["vue","uni-app","uni-hooks","utils"],"author":{"name":"Gavin Tang"},"license":"ISC","_id":"@caikengren/uni-hooks@1.1.0","maintainers":[{"name":"fkcaikengren","email":"fkcaikengren@163.com"}],"homepage":"https://github.com/fkcaikengren/uni-hooks#readme","bugs":{"url":"https://github.com/fkcaikengren/uni-hooks/issues"},"dist":{"shasum":"1984ce90a1e8f80f629b7e57b74311f051790edd","tarball":"https://registry.npmjs.org/@caikengren/uni-hooks/-/uni-hooks-1.1.0.tgz","fileCount":5,"integrity":"sha512-KG7iE5nOllNaGKYFHTj9Y8jtdw9yYqm64WX5+cy7gq0scF52HmcYGJdiqfWPEamAPqv30MjPllqFa1o+4xkn9Q==","signatures":[{"sig":"MEUCIQDEz+E5B0MUcr6k1QwktJRlSwVIAyeWEvD9lSYApIkSZwIgCZz0Z4RW/R1xDaHU7+TL5nCwJF5dd+ifJTCNLEJl91I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110141},"main":"./dist/index.js","type":"module","_from":"file:caikengren-uni-hooks-1.1.0.tgz","types":"./dist/index.d.ts","unpkg":"./dist/index.iife.min.js","module":"./dist/index.js","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsdown","test:attw":"attw --pack --config-path ../../.attw.json ."},"_npmUser":{"name":"fkcaikengren","email":"fkcaikengren@163.com"},"_resolved":"/private/var/folders/b6/7c_c739j69qd6777t7_z8nl40000gn/T/6c0de9f29930dd91d25c8ff963628ad6/caikengren-uni-hooks-1.1.0.tgz","_integrity":"sha512-KG7iE5nOllNaGKYFHTj9Y8jtdw9yYqm64WX5+cy7gq0scF52HmcYGJdiqfWPEamAPqv30MjPllqFa1o+4xkn9Q==","repository":{"url":"git+https://github.com/fkcaikengren/uni-hooks.git","type":"git"},"_npmVersion":"10.9.2","description":"hooks library in uni-app","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@caikengren/uni-use-request":"^1.1.0","@caikengren/uni-hooks-shared":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.0","@dcloudio/uni-app":"^3.0.0-4020420240722002"},"_npmOperationalInternal":{"tmp":"tmp/uni-hooks_1.1.0_1763122124611_0.8853234838357302","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@caikengren/uni-hooks","version":"1.1.1","keywords":["vue","uni-app","uni-hooks","utils"],"author":{"name":"Gavin Tang"},"license":"ISC","_id":"@caikengren/uni-hooks@1.1.1","maintainers":[{"name":"fkcaikengren","email":"fkcaikengren@163.com"}],"homepage":"https://github.com/fkcaikengren/uni-hooks#readme","bugs":{"url":"https://github.com/fkcaikengren/uni-hooks/issues"},"dist":{"shasum":"00c40a82b5909cd1be9cbe5480e9164101e98f22","tarball":"https://registry.npmjs.org/@caikengren/uni-hooks/-/uni-hooks-1.1.1.tgz","fileCount":5,"integrity":"sha512-0bWxGcmgByEPZ+P9/gIZy8+vA2LM0z/BG80ajgNZXn18m8qrdyt51gerQSM9tkPH7okijb5ue9Uptkd3otxplQ==","signatures":[{"sig":"MEQCIA3Nho8dTW9xKaXeHKLMvpnBM2allBFbBicYMYVY4oyQAiBpE3e4/qfOugTn1AfWV3W9RET+9RFwNRpvOvBLftBeSQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102643},"main":"./dist/index.js","type":"module","_from":"file:caikengren-uni-hooks-1.1.1.tgz","types":"./dist/index.d.ts","unpkg":"./dist/index.iife.min.js","module":"./dist/index.js","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsdown","test:attw":"attw --pack --config-path ../../.attw.json ."},"_npmUser":{"name":"fkcaikengren","email":"fkcaikengren@163.com"},"_resolved":"/private/var/folders/b6/7c_c739j69qd6777t7_z8nl40000gn/T/a1a5bb66a9f6ef3f4e741b9e305024ae/caikengren-uni-hooks-1.1.1.tgz","_integrity":"sha512-0bWxGcmgByEPZ+P9/gIZy8+vA2LM0z/BG80ajgNZXn18m8qrdyt51gerQSM9tkPH7okijb5ue9Uptkd3otxplQ==","repository":{"url":"git+https://github.com/fkcaikengren/uni-hooks.git","type":"git"},"_npmVersion":"10.9.2","description":"hooks library in uni-app","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@caikengren/uni-use-request":"^1.1.1","@caikengren/uni-hooks-shared":"^1.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.0","@dcloudio/uni-app":"^3.0.0-4020420240722002"},"_npmOperationalInternal":{"tmp":"tmp/uni-hooks_1.1.1_1763810370261_0.08768234661857832","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@caikengren/uni-hooks","version":"1.1.2","keywords":["vue","uni-app","uni-hooks","utils"],"author":{"name":"Gavin Tang"},"license":"ISC","_id":"@caikengren/uni-hooks@1.1.2","maintainers":[{"name":"fkcaikengren","email":"fkcaikengren@163.com"}],"homepage":"https://github.com/fkcaikengren/uni-hooks#readme","bugs":{"url":"https://github.com/fkcaikengren/uni-hooks/issues"},"dist":{"shasum":"79498674492ecf78098530d2167bc69edc7ac5d8","tarball":"https://registry.npmjs.org/@caikengren/uni-hooks/-/uni-hooks-1.1.2.tgz","fileCount":5,"integrity":"sha512-IIZWMMOxbziawoFY1ebVf2yplIdIl2ilKI2T15hHg9aUtm7DV7OPa+SWIf1qHFsVYFow/2L8oi0/bfW6fM8+KA==","signatures":[{"sig":"MEYCIQDg1kfdjcghpCe/+c5BKChu/1h/sSRgJuGoJ8Sol/9G0wIhAMvr4+z4zc8gE8cy7Q0yYuLS10yhnF020Xncx3+a+izr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102643},"main":"./dist/index.js","type":"module","_from":"file:caikengren-uni-hooks-1.1.2.tgz","types":"./dist/index.d.ts","unpkg":"./dist/index.iife.min.js","module":"./dist/index.js","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsdown","test:attw":"attw --pack --config-path ../../.attw.json ."},"_npmUser":{"name":"fkcaikengren","email":"fkcaikengren@163.com"},"_resolved":"/private/var/folders/b6/7c_c739j69qd6777t7_z8nl40000gn/T/e2c5586f163da92e9a63192282262d71/caikengren-uni-hooks-1.1.2.tgz","_integrity":"sha512-IIZWMMOxbziawoFY1ebVf2yplIdIl2ilKI2T15hHg9aUtm7DV7OPa+SWIf1qHFsVYFow/2L8oi0/bfW6fM8+KA==","repository":{"url":"git+https://github.com/fkcaikengren/uni-hooks.git","type":"git"},"_npmVersion":"10.9.2","description":"hooks library in uni-app","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@caikengren/uni-use-request":"^1.1.2","@caikengren/uni-hooks-shared":"^1.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.0","@dcloudio/uni-app":"^3.0.0-4020420240722002"},"_npmOperationalInternal":{"tmp":"tmp/uni-hooks_1.1.2_1763810521260_0.7041737443273841","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@caikengren/uni-hooks","type":"module","version":"1.1.3","description":"hooks library in uni-app","author":{"name":"Gavin Tang"},"license":"MIT","homepage":"https://github.com/fkcaikengren/uni-hooks.git","repository":{"type":"git","url":"git+https://github.com/fkcaikengren/uni-hooks.git"},"bugs":{"url":"https://github.com/fkcaikengren/uni-hooks/issues"},"keywords":["vue","uni-app","uni-hooks","utils"],"sideEffects":false,"exports":{".":"./dist/index.js","./*":"./dist/*"},"main":"./dist/index.js","module":"./dist/index.js","unpkg":"./dist/index.iife.min.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"peerDependencies":{"@dcloudio/uni-app":"^3.0.0-4020420240722002","vue":"^3.5.0"},"dependencies":{"@caikengren/uni-hooks-shared":"^1.1.3","@caikengren/uni-use-request":"^1.1.3"},"scripts":{"build":"tsdown","test:attw":"attw --pack --config-path ../../.attw.json ."},"_id":"@caikengren/uni-hooks@1.1.3","_integrity":"sha512-NFz+fO2MF8V9AKC570oCVuTaxMAWRjzUWmwxlxmR5J2uJqTVqIhIBLKCW124TF1ZczS0SsHF4ym2Vl6qXwYVqg==","_resolved":"/private/var/folders/b6/7c_c739j69qd6777t7_z8nl40000gn/T/a60f13d85e6a53887c640410fd033395/caikengren-uni-hooks-1.1.3.tgz","_from":"file:caikengren-uni-hooks-1.1.3.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NFz+fO2MF8V9AKC570oCVuTaxMAWRjzUWmwxlxmR5J2uJqTVqIhIBLKCW124TF1ZczS0SsHF4ym2Vl6qXwYVqg==","shasum":"70fa566b8994ed0d0c9e5f2ae28ca2aa694fe3be","tarball":"https://registry.npmjs.org/@caikengren/uni-hooks/-/uni-hooks-1.1.3.tgz","fileCount":6,"unpackedSize":104468,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCVB+ZdUvWkYIa98OtFNM1y6PMnmrRgXbD8U0O9Hwz2FwIgfQWPWgKBBCo0I4a+G/ajaz6Qtb4W5TjrefnXDKy8G60="}]},"_npmUser":{"name":"fkcaikengren","email":"fkcaikengren@163.com"},"directories":{},"maintainers":[{"name":"fkcaikengren","email":"fkcaikengren@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/uni-hooks_1.1.3_1763888455861_0.39566570597770445"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-14T12:08:44.538Z","modified":"2025-11-23T09:00:56.339Z","1.1.0":"2025-11-14T12:08:44.821Z","1.1.1":"2025-11-22T11:19:30.466Z","1.1.2":"2025-11-22T11:22:01.467Z","1.1.3":"2025-11-23T09:00:56.046Z"},"bugs":{"url":"https://github.com/fkcaikengren/uni-hooks/issues"},"author":{"name":"Gavin Tang"},"license":"MIT","homepage":"https://github.com/fkcaikengren/uni-hooks.git","keywords":["vue","uni-app","uni-hooks","utils"],"repository":{"type":"git","url":"git+https://github.com/fkcaikengren/uni-hooks.git"},"description":"hooks library in uni-app","maintainers":[{"name":"fkcaikengren","email":"fkcaikengren@163.com"}],"readme":"# @caikengren/uni-hooks\n\n![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue?logo=typescript) ![Dependencies](https://img.shields.io/librariesio/release/npm/@caikengren/uni-hooks?label=dependencies) ![License](https://img.shields.io/npm/l/@caikengren/uni-hooks)\n\nVue Hooks for uni-app：轻量、类型友好、面向 uni-app 的常用 hooks 集合。封装常用 uni 能力，统一 API，支持 H5 与小程序，提供完整 TypeScript 类型与 d.ts 输出。\n\n**文档地址**：https://fkcaikengren.github.io/uni-hooks/\n\n## Features\n- 面向 uni-app 封装常用composables/hooks，统一 API，兼容 H5/小程序\n- 全量 TypeScript 支持，类型健全，完善的 d.ts 输出\n- 依赖精简，与 `vue`、`@dcloudio/uni-app` 解耦为 peerDependencies\n- 工程化齐备：打包、测试、文档与 CI 完整\n- 与 `@caikengren/uni-hooks-shared`、`@caikengren/uni-use-request` 协同使用\n\n## Install\n- pnpm：`pnpm add @caikengren/uni-hooks`\n- npm：`npm i @caikengren/uni-hooks`\n- yarn：`yarn add @caikengren/uni-hooks`\n\n注意：本包声明以下 peer 依赖，请在项目中同时安装并保证版本匹配：\n- `vue@^3.5.0`\n- `@dcloudio/uni-app@^3.0.0`\n\n## Usage\n- 在任意 `setup()` 或组合式函数中使用；支持 H5 与小程序。\n\n```vue\n// src/pages/index.vue\n<script setup lang=\"ts\">\nimport { usePageScroll, useStorage } from '@caikengren/uni-hooks'\nimport { ref } from 'vue'\n\n// 响应式持久化存储（自动读写 uni storage）\nconst count = useStorage('count', 0)\nconst inc = () => count.value++\n\n// 滚动到选择器位置（H5 与小程序统一）\nconst { scrollToSelector } = usePageScroll({ duration: 300 })\n</script>\n```\n\n更多示例与 API 请查阅文档：https://fkcaikengren.github.io/uni-hooks/\n\n## License\nMIT © Gavin Tang\n","readmeFilename":"README.md"}