{"_id":"@ahooks.js/use-url-state","name":"@ahooks.js/use-url-state","dist-tags":{"latest":"3.6.0"},"versions":{"3.6.0":{"name":"@ahooks.js/use-url-state","version":"3.6.0","description":"A hook that stores the state into url query parameters.","main":"./lib/index.js","module":"./es/index.js","types":"./lib/index.d.ts","unpkg":"dist/ahooks.js-use-url-state.js","repository":{"type":"git","url":"git+https://github.com/alibaba/hooks.git"},"scripts":{"build":"gulp && webpack-cli","test":"vitest run --color","test:cov":"vitest run --color --coverage","tsc":"tsc --noEmit"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"license":"MIT","bugs":{"url":"https://github.com/alibaba/hooks/issues"},"homepage":"https://github.com/alibaba/hooks","gitHead":"11f6ad571bd365c95ecb9409ca3050cbbfc9b34a","dependencies":{"@babel/runtime":"^7.21.0","ahooks":"^3.4.1","query-string":"^8.1.0","tslib":"^2.4.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0","react-router":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_id":"@ahooks.js/use-url-state@3.6.0","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-5NPBVbypFYWPsDIR18NdkzpRFVQBgmyCwc8LMV9j+etkcWThjSsO/aEDaDUHWcy/EJvEN6dtyOKLPIhWOLwL/Q==","shasum":"827c816baefa5f7a0a21f174f62c0dfdc8aca59a","tarball":"https://registry.npmjs.org/@ahooks.js/use-url-state/-/use-url-state-3.6.0.tgz","fileCount":9,"unpackedSize":88232,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDQzqqYsGAWYeTevYgzml0z7ranmBK/rzVBC9uBzLoOWwIhAKabPBG67LHfOH9ihjbYkZKKgiqa6xtOSjY4nIaAgyj1"}]},"_npmUser":{"name":"taoweng","email":"li1076629390@gmail.com"},"directories":{},"maintainers":[{"name":"taoweng","email":"li1076629390@gmail.com"},{"name":"liuyib","email":"liuyibo0616@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-url-state_3.6.0_1774711770907_0.7192409876632464"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-28T15:29:30.847Z","3.6.0":"2026-03-28T15:29:31.048Z","modified":"2026-03-28T15:29:31.227Z"},"maintainers":[{"name":"taoweng","email":"li1076629390@gmail.com"},{"name":"liuyib","email":"liuyibo0616@gmail.com"}],"description":"A hook that stores the state into url query parameters.","homepage":"https://github.com/alibaba/hooks","repository":{"type":"git","url":"git+https://github.com/alibaba/hooks.git"},"bugs":{"url":"https://github.com/alibaba/hooks/issues"},"license":"MIT","readme":"# useUrlState\n\nA hook that stores the state into url query parameters.\n\n## Installing\n\nInside your React project directory, run the following:\n\n```bash\nyarn add @ahooks.js/use-url-state -S\n```\n\nOr with npm:\n\n```bash\nnpm install @ahooks.js/use-url-state -S\n```\n\nOr with pnpm\n\n```bash\npnpm add @ahooks.js/use-url-state\n```\n\nOr with Bun\n\n```bash\nbun add @ahooks.js/use-url-state\n```\n\n## Example\n\n```javascript\nimport useUrlState from '@ahooks.js/use-url-state';\n\nconst [state, setState] = useUrlState({ demoCount: '1' });\n```\n\n## Documentation\n\nhttps://ahooks.js.org/hooks/state/use-url-state\n","readmeFilename":"README.md","_rev":"1-e53eeade48b15e9f35eb40adf9f791d7"}