{"_id":"@bymeisam/use","_rev":"11-179320dac43c5f19ef230ff0a54424d2","name":"@bymeisam/use","dist-tags":{"latest":"1.4.2"},"versions":{"0.1.0":{"name":"@bymeisam/use","version":"0.1.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@0.1.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"dist":{"shasum":"a33bd25bc9d4284e0512b79f5f656f316c593f1e","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-0.1.0.tgz","fileCount":6,"integrity":"sha512-m18ufx2zicX7cIF9uqZJPu9WAPM3nISL2gp4xOagp7RJVe12Lc9be6kToA7ejBuxa1GJEN7hNH6ODhWqONzpzQ==","signatures":[{"sig":"MEUCIQC8B26dMoEXBZziosdCh93+YkG5cJ2RCIbFDH6zo9tFewIgbYVqdoWJvBpjuEfrrcimWWy+Q7aI0H2hnlTR/+W934U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2000},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7ea5a7103f380fc66181a1abaadd7e90938fc5b1","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"_npmVersion":"11.5.2","description":"A simple React hooks library","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","typescript":"^5.0.0","@types/react":"^18.2.0"},"peerDependencies":{"react":">=16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/use_0.1.0_1757167945335_0.17290085785396747","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@bymeisam/use","version":"1.0.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.0.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"dist":{"shasum":"8d18ace4b075cc7ffda82db103258311e6e6f478","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.0.0.tgz","fileCount":23,"integrity":"sha512-/GGk2+X/E4VYPs/XLpJ+w+XugysyXzUmHqa3qYnncLvSvYWnkMFy3MCtWYKbz1Au0/QYKwr1kEobvvTBzOSQvg==","signatures":[{"sig":"MEUCICGgTi290XXTJh23xRSu7H/MuIrVDixJ2IMBEeZ1yOUhAiEAuYh/8tWsCI/uzPC68dnGFArOxdZCO4yTuBOvp7w4Ros=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11140},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"e35538ffa5601d531973a005a2ee663667f973ed","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.0.0_1757316637044_0.8921544669345118","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bymeisam/use","version":"1.0.1","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.0.1","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"dist":{"shasum":"558c58e8c076e1222efe9347979356e577228cd2","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.0.1.tgz","fileCount":23,"integrity":"sha512-avxqte484OlQySFUzv1dZjzxG3Mn91qS1+d8NUbIHEIxmHTPwIZasNdx89UcAvMnGoGfowJrW/bTZ+VTf/XOZA==","signatures":[{"sig":"MEYCIQDzzeI97u4FP/ceDcM72UADxyiKKk0xVRIbn4kDfoBkRQIhALUNE0vVB8fTl26G4pLt2teq5bpxMuGsdx8KgO3zuTDA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11140},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"254de7e917c5ce07f91b4d78257dfb4537b33da5","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.0.1_1757317352253_0.1441142301074514","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bymeisam/use","version":"1.1.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.1.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"0831bc4e693ddb9e1680d64e6472b11cfac43b80","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.1.0.tgz","fileCount":31,"integrity":"sha512-H1j5NCozP7ZC6deHfujH2dQAnpZnbKkHnmjTLK0sYMfIgruhOPKLGYzxG+wdJGZJxH3cKXlD4TjWq5mWaNLrjg==","signatures":[{"sig":"MEUCIQDJ+xQlbG2UyqWbtmQCbxko7RYWZycDLCBWp7ZkjxPidAIgN29/aTXIvXmUCHVfCpSVil4SWjlYpAhWUkMz6EQveFs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24389},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"19722a42eebb9e68a6396639e0f807798b64cd84","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.1.0_1757653027626_0.6898043301698475","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@bymeisam/use","version":"1.1.1","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.1.1","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"0ee65b4124b541f52c4f5469a8bb5e0925dc338b","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.1.1.tgz","fileCount":31,"integrity":"sha512-e76hGCMtQmW+xloS1ZcoxtniMw9JaClloz1dsmDMX3+VhSeHhJMJwE/UCDFNTbDsZ+W1IjXO4p05U+YsnBGYeg==","signatures":[{"sig":"MEUCIQD4on63Mcqyu60BuOyO+FC9B0OotZbnOZ15FXYUxaUAFAIgFaWTRlFNDyEzfdDnvF231FQKsA+tikbE+SclCFsJAdY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24720},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"cecaf4403694ced48eb097c070129bc1868152dc","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.1.1_1757681548836_0.7554929695807933","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@bymeisam/use","version":"1.1.2","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.1.2","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"72df9f4b090bd2a365156b50691a7b7d6a43645b","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.1.2.tgz","fileCount":31,"integrity":"sha512-vzvMEKdH4Q5w3kdtNxi1REeQgPBKINr23NhfbeJ6KEaWkIUefYCB73LqrG6Gtth0VvPrpKB2Q5eqHaW6E2dGPg==","signatures":[{"sig":"MEQCICNAgxaEC6V5ARNjKlygvgd9PNh2jb2uyhvMDZUlLbZ+AiAc6R4ThShNe/iv5+kyfNbh1Q+7clwh4rEPIszbMT2fwg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24740},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"a275bbbbfd7244dcfeb9fc32cc72c0bfd51e11f2","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.1.2_1757766847583_0.9724641567807479","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@bymeisam/use","version":"1.2.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.2.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"ce80c21d4fddbe87c1274f851bf036ae2fa153b3","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.2.0.tgz","fileCount":39,"integrity":"sha512-4WWOGxxjxsmHItbYdNhB2SJXCBvsdm3HoIozdwurr10nvY7yJDDEWWgEILo00W+rG50+V2sOu+BiVsiITTtdJg==","signatures":[{"sig":"MEYCIQDyLEU4vNdHeBwSOeeMEUG2hjDBSj/6nOkVhTn4VA87ZAIhAMYsTAuYRtJfgeF2erFFGpNosSbC3//v4lLbdSs6dN4R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27426},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"f92f1ffd9efe559ab7261f3892b8788a16b8f2f4","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.2.0_1757766967659_0.47322288987772443","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@bymeisam/use","version":"1.3.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.3.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"ab67908554a842be682c9f116e3b4cc00c0b5996","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.3.0.tgz","fileCount":47,"integrity":"sha512-0emXVPjw+6vD3HLv3zOHnSZgkULv3lhgjOU7+7t+/ZS7/b1k5F9m6+siRH9YiZReEsFOaCJSDIwBPD4/P1jwUA==","signatures":[{"sig":"MEQCIBgQSvMlYUyX8ax1WpNmo43B0gPfkpPnImoLFMD2l1sqAiB+Lk/dsw9D8foWe3DWUhJgN7MCURHYYX3MpeAxV6zn/Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32484},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"a22e88a7fb98498e93a65708e39af86909cd7639","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.3.0_1758005490250_0.7802454564337342","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@bymeisam/use","version":"1.4.0","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.4.0","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"5cc591f4b703c3537b24453e9593eb1de3e5fd8c","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.4.0.tgz","fileCount":55,"integrity":"sha512-6AgpmqfRqbzhKorq2B8lGEBHDxncL2TOdKAxlSWK4Onk94Wz5tbfoE6203KwPGXb1ppORnnXigeD7LRUTB9zVg==","signatures":[{"sig":"MEYCIQC8f2y+g3x/jEixirY55OhlQcrSQlUqlYL1OqUtSn+M6wIhALw1tnMzVFTnlCGzg+87cG73nc7XMh2YXCFGXdTG2/Ee","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40131},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"b2744641e35e9b804fe296b80d380cca912ea2a4","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","globals":"^16.4.0","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.4.0_1758068911085_0.12008581954055764","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"@bymeisam/use","version":"1.4.1","keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","_id":"@bymeisam/use@1.4.1","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"homepage":"https://github.com/bymeisam/use#readme","bugs":{"url":"https://github.com/bymeisam/use/issues"},"dist":{"shasum":"40fed433234cea45bf3cb897d7651e76ad13a6d8","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.4.1.tgz","fileCount":107,"integrity":"sha512-274sdGZNcsqEju1ZqdIZ/CM7CCkbi6zB5vG96UlDWouriVYgQDbNjkcPwVcrmlEiC1dpsure+ezGEHJeqSIcQg==","signatures":[{"sig":"MEUCIQCd2UaEX5OGWekygSYl7sJ+at3il1wc1zlJ8s4u4AOYywIgI5ahamwsnKLG5Lzs7OONMlgwDeM+miZ8hLfSP1HIOtY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74756},"main":"dist/cjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"gitHead":"4a694b6d69ec26740481ca82070741b29f21688b","scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"npm run build:cjs && npm run build:esm","test:ui":"vitest --ui","lint:fix":"eslint src --ext .ts,.tsx --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"repository":{"url":"git+https://github.com/bymeisam/use.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple React hooks library","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.1.1","eslint":"^9.35.0","vitest":"^3.2.4","globals":"^16.4.0","happy-dom":"^18.0.1","react-dom":"^19.1.1","@vitest/ui":"^3.2.4","typescript":"^5.0.0","@types/react":"^19.1.12","semantic-release":"^24.2.7","eslint-plugin-react":"^7.37.5","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.8.0","@typescript-eslint/parser":"^8.42.0","eslint-plugin-react-hooks":"^5.2.0","@semantic-release/changelog":"^6.0.3","@typescript-eslint/eslint-plugin":"^8.42.0"},"peerDependencies":{"react":">=19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use_1.4.1_1758072632779_0.2793773396481021","host":"s3://npm-registry-packages-npm-production"}},"1.4.2":{"name":"@bymeisam/use","version":"1.4.2","type":"module","description":"A simple React hooks library","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","repository":{"type":"git","url":"git+https://github.com/bymeisam/use.git"},"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./*":{"types":"./dist/esm/*/index.d.ts","import":"./dist/esm/*/index.js","require":"./dist/cjs/*/index.js"}},"sideEffects":false,"scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","lint":"eslint src --ext .ts,.tsx","lint:fix":"eslint src --ext .ts,.tsx --fix","test":"vitest run","test:watch":"vitest","test:ui":"vitest --ui","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"keywords":["react","hooks","typescript"],"author":{"name":"Meisam"},"license":"MIT","peerDependencies":{"react":">=19.0.0"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@testing-library/jest-dom":"^6.8.0","@testing-library/react":"^16.3.0","@types/react":"^19.1.12","@typescript-eslint/eslint-plugin":"^8.42.0","@typescript-eslint/parser":"^8.42.0","@vitest/ui":"^3.2.4","eslint":"^9.35.0","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","globals":"^16.4.0","happy-dom":"^18.0.1","react":"^19.1.1","react-dom":"^19.1.1","semantic-release":"^24.2.7","typescript":"^5.0.0","vitest":"^3.2.4"},"publishConfig":{"access":"public"},"_id":"@bymeisam/use@1.4.2","gitHead":"402dbac3ba5c450ad31e233ba5d6f7facc40305e","bugs":{"url":"https://github.com/bymeisam/use/issues"},"homepage":"https://github.com/bymeisam/use#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.3","dist":{"integrity":"sha512-tNfToe76AMw8g6GyHt6x1pMNqpM8cKg4JJgVMbNVxDe8cb7SWryULW81HORT9JdQwT4fj4OU7FRy95aBVeY9/A==","shasum":"9b24ad59079ca7515c9a52b22a8cdca75e7c3944","tarball":"https://registry.npmjs.org/@bymeisam/use/-/use-1.4.2.tgz","fileCount":132,"unpackedSize":183227,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDgWNyH1876BPdOOmCvsAja8SPmhrATpMfmUTuuBXrL9AiBXDlKbJRSKPDTrcbRINA8qca7BLJ8GX3wGm1wV1FhV+g=="}]},"_npmUser":{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"},"directories":{},"maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use_1.4.2_1758073646374_0.5644386091513072"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-06T14:12:25.152Z","modified":"2025-09-17T01:47:26.762Z","0.1.0":"2025-09-06T14:12:25.530Z","1.0.0":"2025-09-08T07:30:37.222Z","1.0.1":"2025-09-08T07:42:32.426Z","1.1.0":"2025-09-12T04:57:07.817Z","1.1.1":"2025-09-12T12:52:29.011Z","1.1.2":"2025-09-13T12:34:07.760Z","1.2.0":"2025-09-13T12:36:07.836Z","1.3.0":"2025-09-16T06:51:30.422Z","1.4.0":"2025-09-17T00:28:31.291Z","1.4.1":"2025-09-17T01:30:32.988Z","1.4.2":"2025-09-17T01:47:26.569Z"},"bugs":{"url":"https://github.com/bymeisam/use/issues"},"author":{"name":"Meisam"},"license":"MIT","homepage":"https://github.com/bymeisam/use#readme","keywords":["react","hooks","typescript"],"repository":{"type":"git","url":"git+https://github.com/bymeisam/use.git"},"description":"A simple React hooks library","maintainers":[{"name":"bymeisam","email":"meisam.ahmadi.au@gmail.com"}],"readme":"# @bymeisam/use\n\nA collection of reusable React hooks for common functionality.\n\n## Installation\n\n```bash\nnpm install @bymeisam/use\n```\n\n## Hooks\n\n### useToggle\nA hook for toggling between boolean values or custom values with reset functionality.\n\n**API:** `useToggle(defaultValue, alternateValue?) => [value, toggle, reset]`\n\n**Boolean mode:**\n```tsx\nimport { useToggle } from '@bymeisam/use';\n\nconst [isOn, toggle, reset] = useToggle(true);\n// isOn: true, toggle to false, reset back to true\n\nfunction App() {\n  return (\n    <div>\n      <p>Status: {isOn ? 'ON' : 'OFF'}</p>\n      <button onClick={toggle}>Toggle</button>\n      <button onClick={reset}>Reset</button>\n    </div>\n  );\n}\n```\n\n**Custom values mode:**\n```tsx\nconst [theme, toggleTheme, resetTheme] = useToggle('light', 'dark');\n// theme: 'light', toggleTheme to 'dark', resetTheme back to 'light'\n\nconst [status, toggleStatus, resetStatus] = useToggle('active', 'inactive');\n```\n\n**Returns:**\n- `value`: Current value (T)\n- `toggle`: Function to toggle between values\n- `reset`: Function to reset to default value\n\n**Error handling:**\n- Throws error if non-boolean value is provided without alternate value\n\n### useFocus\nA hook for managing focus state and programmatically controlling focus on HTML elements.\n\n**API:** `useFocus<T>(options?) => { ref, focus, blur, isFocused }`\n\n```tsx\nimport { useFocus } from '@bymeisam/use';\n\n// Basic usage\nconst { ref, focus, blur, isFocused } = useFocus<HTMLInputElement>();\n\n// With auto focus\nconst { ref, focus, blur, isFocused } = useFocus<HTMLInputElement>({\n  autoFocus: true\n});\n\nfunction App() {\n  return (\n    <div>\n      <input ref={ref} placeholder=\"Focus me\" />\n      <button onClick={focus}>Focus Input</button>\n      <button onClick={blur}>Blur Input</button>\n      <p>Input is {isFocused ? 'focused' : 'not focused'}</p>\n    </div>\n  );\n}\n```\n\n**Returns:**\n- `ref`: Ref to attach to the element you want to manage\n- `focus`: Function to programmatically focus the element\n- `blur`: Function to programmatically blur the element\n- `isFocused`: Boolean indicating if the element is currently focused\n\n### useClickOutside\nA hook that detects clicks outside of a specified element and triggers a callback.\n\n**API:** `useClickOutside<T>(callback) => RefObject<T | null>`\n\n```tsx\nimport React, { useState } from 'react';\nimport { useClickOutside } from '@bymeisam/use';\n\nfunction Dropdown() {\n  const [isOpen, setIsOpen] = useState(false);\n  const ref = useClickOutside<HTMLDivElement>(() => {\n    setIsOpen(false);\n  });\n\n  return (\n    <div>\n      <button onClick={() => setIsOpen(!isOpen)}>\n        Toggle Dropdown\n      </button>\n      {isOpen && (\n        <div ref={ref}>\n          <p>Click outside to close</p>\n        </div>\n      )}\n    </div>\n  );\n}\n```\n\n**Returns:**\n- `RefObject<T | null>`: Ref to attach to the element you want to monitor\n\n### useGeolocation\nA hook for accessing browser geolocation with proper error handling.\n\n**API:** `useGeolocation(options?) => { location, error, loading, getCurrentPosition, startWatch, endWatch }`\n\n```tsx\nimport { useGeolocation } from '@bymeisam/use';\n\nconst { location, error, loading, getCurrentPosition, startWatch, endWatch } = useGeolocation({\n  enableHighAccuracy: true,\n  timeout: 10000\n});\n\n// Get current location once\nconst handleGetLocation = () => {\n  getCurrentPosition();\n};\n\n// Start continuous tracking\nconst handleStartTracking = () => {\n  startWatch();\n};\n\n// Stop tracking\nconst handleStopTracking = () => {\n  endWatch();\n};\n```\n\n**Returns:**\n- `location`: Current location object with coords and timestamp\n- `error`: Error string if geolocation fails\n- `loading`: Boolean indicating if request is in progress\n- `getCurrentPosition`: Function to get location once\n- `startWatch`: Function to start continuous location tracking\n- `endWatch`: Function to stop location tracking\n\n### useLocalStorage\nA hook for managing localStorage state with React.\n\n```tsx\nimport { useLocalStorage } from '@bymeisam/use';\n\nconst [value, setValue] = useLocalStorage('key', 'defaultValue');\n```\n\n### useClickOutside\nA hook that detects clicks outside of an element, useful for closing modals and dropdowns.\n\n**API:** `useClickOutside(callback) => RefObject`\n\n```tsx\nimport { useClickOutside } from '@bymeisam/use';\n\nfunction Dropdown() {\n  const [isOpen, setIsOpen] = useState(false);\n  const dropdownRef = useClickOutside(() => setIsOpen(false));\n\n  return (\n    <div ref={dropdownRef}>\n      <button onClick={() => setIsOpen(!isOpen)}>\n        Toggle Dropdown\n      </button>\n      {isOpen && (\n        <div className=\"dropdown-menu\">\n          <p>Dropdown content</p>\n        </div>\n      )}\n    </div>\n  );\n}\n```\n\n**Parameters:**\n- `callback`: Function called when click occurs outside the element\n\n**Returns:**\n- `RefObject`: Ref to attach to the element you want to detect outside clicks for\n\n### useDebounce\nA hook that debounces value changes, perfect for search inputs and performance optimization.\n\n**API:** `useDebounce(initialValue, delay) => [debouncedValue, setValue, currentValue]`\n\n```tsx\nimport { useDebounce } from '@bymeisam/use';\n\nfunction SearchInput() {\n  const [debouncedSearch, setSearch, currentSearch] = useDebounce('', 300);\n\n  // API call only happens after user stops typing for 300ms\n  useEffect(() => {\n    if (debouncedSearch) {\n      searchAPI(debouncedSearch);\n    }\n  }, [debouncedSearch]);\n\n  return (\n    <input\n      value={currentSearch}\n      onChange={(e) => setSearch(e.target.value)}\n      placeholder=\"Search...\"\n    />\n  );\n}\n```\n\n**Returns:**\n- `debouncedValue`: Value updated after delay period\n- `setValue`: Function to update the current value immediately\n- `currentValue`: Current value (updates immediately)\n\n**Use cases:**\n- Search inputs with API calls\n- Form validation after user stops typing\n- Auto-save functionality\n- Performance optimization for expensive operations\n\n## License\n\nMIT","readmeFilename":"README.md"}