{"_id":"@aruhooks/mine","_rev":"6-bf9d2597f0cc6ac4281a46db30b42ace","name":"@aruhooks/mine","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.0":{"name":"@aruhooks/mine","version":"0.0.0","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"e7cec7893afdd41d21ac5dd305eacc24ba92952b","_id":"@aruhooks/mine@0.0.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-F+QWzwyiZjrsABnIwHVZLbRPYA0uItLIDYQhbDiacbkwX3rm59fGGa+l+O35slCxLt6u3fwkEAxKolQYdnYZqA==","shasum":"d1d5e4db70a6379b9a8087585929c6f71e173d58","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.0.0.tgz","fileCount":6,"unpackedSize":5666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGoDu6lBknLfQRdVpkWeNEZ1RGRRjMy5zcBOzIciNXEDAiEA2E0/a7IDxxoXrmK65hv56xrHI32vrPfMGD5FwJcrCik="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUMYHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrzhg//Y1NVPXuPqdRoln6Y15mIa68jf3MhHfKPTbiClQEDhWf2kK/3\r\n/NvhYrRMdWT9LWpijAIpQ+q/opxyBqN8HbNC1oPs1RTaqNFWrFyQP1D7IO1U\r\nIxgThZsntfgLqz2r6dyOFX2rN33MD/HAvG3UnHFlXtSvJyK8OrbSp0vDGX8z\r\nY7klXSxcUJtyPKiQcBp6CMUb/Fq7DStMkwbex5HDwqzIu3K/a9Ff4Nm1AYF1\r\nEbyzUUfnXJ3siEgh58RebKW5f0JsdfJeeLUxMHkmFbYneSB7lmeqChGJGdy7\r\nhznXsQfJPKBXcUYoqqbXsZXiAlHE87V8Hyt7LiGxp7D5AmvN27u0SpwroB4l\r\n13T5Lps+BoIoXOlNYYE+lKmWRrYCtg0qqqlWuYWhkSkjqbboo9rWlm61xgTg\r\nvWmoOU7zfaWPQUPZupJcmuCnj8pogIsaAGSZcZ9RI0ctK/epOXdue2kGGwNx\r\nWmn6gTeaBhpW73Q8hLIihspJYwx2/x4Hm6obbhq6wcuPvF4xVBrv/OZ2kNm1\r\nBo22fRepEyGVAhkK5hjVBEhh3BsdY0mmOTO1cHjY2gbFlAn+TylidTigmpmX\r\nACR58yPx27fb5Rc0Ab9l1XQj9qrmSCi7gwigZT0Mk1zK8CapH5ChQLXKszlV\r\n+ssHv1+Cy/gNAuavemJLRhZgK1Lm/MKOQhk=\r\n=Qx/Z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.0.0_1683015175334_0.3853708260161368"},"_hasShrinkwrap":false},"0.1.0":{"name":"@aruhooks/mine","version":"0.1.0","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"215c6bc5f18a0a8b852939e2d775b6c004ec1156","_id":"@aruhooks/mine@0.1.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-S9z0NzA4VIrSIFuBcnJG3uRtSsF5B3DIIDwqVNXd1XLK8zE74kygs721CMBMcDZze12pQdo8i0P5QvIRicrWKA==","shasum":"86d84b43e0691dfcf5a93be3e79710d506fe5b39","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.1.0.tgz","fileCount":6,"unpackedSize":5666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPOdt7R91Ln4f2ALxFiaEn2bGtGwpMTAZng5XqyImYGgIhAMVBfHp95y7K9cs7uDHvsIDPjJDXChprcKPjRvEGJRZZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUMZIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxfA/+JNsXqS85WmjvY/ouhh/dL22bulCQ5lBh8xPUUBmzgBQowgCO\r\new+yInjqStPI//G17p/KkTxwCM9VIqNwKrXAhIjpCV1Zy+4Blgi3NzneHA1/\r\nNH4c/rza2GaF04Dbgx/rI+VQhjUICbiMkIhqSlEP6KB6S8yj1H2IHb2dG1j5\r\nAflvSGmB3fcXFQUOnM7FE0BveRwgidcozBNKELrvkvwL1PPHqOMeaz3krZLh\r\ngx/H1LxUgd9UD16ZE21W6Unx4DQHVNW7CVQgd2fE3TxFPi8JEsDUVEjgd0P0\r\nla73YwE9juXZV9ArQvoK5lwoPmSlmo9cCBQnKLsg1TWareffp9emI+iNYzlU\r\n+RrQdHRTQuf2HLGpecwFTmb7r/+57YD9T9TLlr4MI2J7SPQpaDlyqcpSKd5E\r\nbfhwAEf6D5QQ2Qvge36OzBpYsBv29b5GihdfJlF/QH4CX4Y94NOH/YYwpTNv\r\ngs39k7GdjgrMOOpM3hq6V2NEWGLDwTv6EojMt2Vs0KvtQiBqxDi8GQBGo27v\r\nGWDtvVCONBtmwSFlwyuhFI0GCEPzW/mqmiM5DRvkWyJP1lxj1rP5McZhJpTu\r\nnjt5fULsRyh89xshBnRLkYq+iQ7AjR4FSZHsQzdMS0JN631eFo8k/gUEDTA4\r\n2zQmV3kKJwN1g+8/7rV8MVkjfLuwr0FT0Go=\r\n=G+K5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.1.0_1683015240603_0.9123366220821552"},"_hasShrinkwrap":false},"0.1.1":{"name":"@aruhooks/mine","version":"0.1.1","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"eb154ec86135a9662e9657d5b4bd09ee11532491","_id":"@aruhooks/mine@0.1.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FKV9qk0+dfv+RtLODYxuHMdEuB7RbrUNtsEBd3dblLxOqTMX8GPQUlq9MCUM0muwLto2W027mNTqeM1q0v79ww==","shasum":"6f7720c42e54c388943bafe955d797dd2c947b62","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.1.1.tgz","fileCount":6,"unpackedSize":8366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0lwk/+mVkZn0V6vn/fy5vKk+NuM6wifsHViT3HfpsuAIhAKMKyvMOi4ORgTLsDkYdxO+5AQhgX4gnX0i6/YD9tJ4E"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUMjaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooMg/9HjUaft0j+ToYaSgcQ6PGP34fUWiD1FqlJwocbFIJmW4MB1av\r\nJyj1w2hsQ2WCE+6wZ5STfpUhFPmZ2VxgmvpPOKfpIsGyMy14rGFu3kALKHIF\r\nFRgMtzJexBvWiuIa/6npVhhNKD6PNNsRzAhkAQsdrq9iAnG/MbVyZyAxPrNV\r\nz4sHjBP5NLxObvSnOwwSL5J+n247zB9ibIdkL9HBn/00uBX0qBmsNXihuPMF\r\nFpcLR2Cb4oy4qA9U5RpvVSddjJu+g/0K08PydR74AADydn5JoiGK0ol/FxGn\r\nt+PHXl7dMqlMe4B6iMHlbfr9aW1YY/9YooU9/cFvW5jR8hLSA8jjkiIVkkbc\r\nqIm0fzKYVO6xWsuGq3o0dnIKD+Sl/lPq894mvb6iPOjFAYIBgtfKKeTUuNgW\r\n4PdkVT36NZ4O8BDbeVysbtTpfr6fVvdzxk03KSxQwyxFcDFoTV0OCh+26mJU\r\nHZZWooY8a0dhFvxbqFPsJrXVgXFuI+AohxVq/sGFXbKHFnCBLq8e02Unm/Md\r\ndE4wwdFL5ytzo9Xz2f5OFx4YhaeAaO+scIAJN/40jWWcDDc4F7BopFZSb+lq\r\nJOn3qTbIm6o5epC6wPRXLQtu3IZvpWgSop8jxjVF4h+nv5UZNESmVHNyKooI\r\nDJxd3yRxtfIKxQdlbAw+oKreV5VCxbiwg0Q=\r\n=GZM0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.1.1_1683015898036_0.9258736730166481"},"_hasShrinkwrap":false},"0.1.2-beta.0":{"name":"@aruhooks/mine","version":"0.1.2-beta.0","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"e6f51e0f0c70396c726afc22c75c4967c3b69d6c","_id":"@aruhooks/mine@0.1.2-beta.0","_nodeVersion":"18.14.1","_npmVersion":"9.5.0","dist":{"integrity":"sha512-HMEJ5Kg7xgr5zuUSZeDQ+excl1vHt2q/5TO4nKDeSDen+L3VWVlj2DqmKuzPazuOc7c3uN7rAMJtKq/iSBF83g==","shasum":"c568a8a134d5d5f0e2d005d3546fdb1070d993fb","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.1.2-beta.0.tgz","fileCount":6,"unpackedSize":10347,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcRJnKcraj0WexdJfMw7jLVqcmXFW9X0EY1NlvtyM+6AIgNp2lbvMPJKXEdCyEaz/LQLjq4YXLUJXdMneq3FuO+5g="}]},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.1.2-beta.0_1683034614074_0.3797539205695859"},"_hasShrinkwrap":false},"0.1.2-beta.1":{"name":"@aruhooks/mine","version":"0.1.2-beta.1","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"5fa093c0928d22a862c09dd3010d392812650305","_id":"@aruhooks/mine@0.1.2-beta.1","_nodeVersion":"18.14.1","_npmVersion":"9.5.0","dist":{"integrity":"sha512-jMrMMtl1z/dmHao2/y5hUV0gMEYsaziuUXLgqgV0Z1aY8wfadqBaftPrEpiORNLKUCWGmOV70m5L4i5CA8ATFQ==","shasum":"cf0619fe63fca079f4ed805e2c74ad11ed1ee37c","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.1.2-beta.1.tgz","fileCount":6,"unpackedSize":10196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrh4Zu06QXYO56Jbk2K3y03mtkOgkb0WKGpEwSKlxmFAiAdrRjhh9oQ65LF+Bt5R44EcGdTJC8T7wQrz3HQICKyiw=="}]},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.1.2-beta.1_1683035558224_0.7298727122771034"},"_hasShrinkwrap":false},"0.1.2-beta.2":{"name":"@aruhooks/mine","version":"0.1.2-beta.2","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"5fa093c0928d22a862c09dd3010d392812650305","_id":"@aruhooks/mine@0.1.2-beta.2","_nodeVersion":"18.14.1","_npmVersion":"9.5.0","dist":{"integrity":"sha512-DBP3byQ1EiU8ej+2IEwx557gtNHNICC7MXGFWgS0buT+TvbkgU7hs5j04DtnP1X/9hEMNFAcSRAFkWTGZgmgzw==","shasum":"64f0f84f1149ffe06f374d8145ca899557e74306","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.1.2-beta.2.tgz","fileCount":6,"unpackedSize":14608,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFCewm/MfdwaS+nRa9aovs8eeKpXNHDwVhjtaVMzel5AiEAh9Ds+FbAS+L7rvf0WOiIPurk4L4ts6N/D0KR2KcVkgk="}]},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.1.2-beta.2_1683036891401_0.032712533381816566"},"_hasShrinkwrap":false},"0.2.0":{"name":"@aruhooks/mine","version":"0.2.0","description":"hooks self","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup ./src/index.ts --format cjs,esm --dts","lint":"tsc","release-v2":"node scripts/release.js","bump":"node scripts/bump.js","release":"pnpm bump && pnpm release-v2"},"repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"engines":{"node":">=16"},"author":{"name":"arufars"},"license":"MIT","bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"homepage":"https://github.com/arufars/aruhooks#readme","devDependencies":{"@actions/exec":"^1.1.1","@changesets/cli":"^2.26.1","@types/react":"^18.2.0","tsup":"^6.7.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16"},"gitHead":"81081fc867e5f454384957e2830d68f53f0ebcc8","_id":"@aruhooks/mine@0.2.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RbgyTn6gD6J6uU5lgZwH6TEJFDf4jTixjjDyXlpGoS9YEFNxn6A1Tdz9niMepkzzwCsRfxJ6KRgTU6mogD0/2w==","shasum":"ae537575a6a35f70775367f42bc92f0031cf415e","tarball":"https://registry.npmjs.org/@aruhooks/mine/-/mine-0.2.0.tgz","fileCount":6,"unpackedSize":10749,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICK4tVv+xwVRL/0hgx2x8DoTiTOqcelewuotlFC0EfI6AiB7cgWH5wntXJ+NTL99ZjN185iW0NILPWcDdmfvTiUbpQ=="}]},"_npmUser":{"name":"marinefars","email":"firselee@gmail.com"},"directories":{},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mine_0.2.0_1683040728404_0.7055702576847582"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-02T08:12:55.262Z","0.0.0":"2023-05-02T08:12:55.533Z","modified":"2023-05-02T15:18:48.683Z","0.1.0":"2023-05-02T08:14:00.823Z","0.1.1":"2023-05-02T08:24:58.202Z","0.1.2-beta.0":"2023-05-02T13:36:54.301Z","0.1.2-beta.1":"2023-05-02T13:52:38.382Z","0.1.2-beta.2":"2023-05-02T14:14:51.629Z","0.2.0":"2023-05-02T15:18:48.559Z"},"maintainers":[{"name":"marinefars","email":"firselee@gmail.com"}],"description":"hooks self","homepage":"https://github.com/arufars/aruhooks#readme","repository":{"type":"git","url":"git+https://github.com/arufars/aruhooks.git"},"author":{"name":"arufars"},"bugs":{"url":"https://github.com/arufars/aruhooks/issues"},"license":"MIT","readme":"# aruhooks\n\nA collection of hooks created as needed - 🚧 Still in development.\n\n## Table of Contents\n\n- [Installation](#Installation)\n- [Hooks](#hooks)\n  - [usePagenation](#usepagenation)\n  - _Comming Soon_\n    - [Usage Example](#usage-example)\n    - [API](#api)\n      - [Options](#options)\n      - [Return Value](#return-value)\n\n## Installation\n\n```bash\n\nnpm install @aruhooks/mine\n\n```\n\nor with pnpm\n\n```bash\n\npnpm add @aruhooks/mine\n\n```\n\n## Hooks\n\n\n\n## `1. usePagenation`\n\n`usePagenation` is a hook used to paginate data. This hook accepts two parameters, data and options.\n\n### Usage Example\n\n```jsx\n\nimport usePagenation from \"./hooks/usePagenation\";\n\nfunction ExampleComponent() {\n  const data = [/* your data array */];\n  const options = { sliceSize: 4, currentPages: 1 };\n\n  const { sliceData, nextPage, prevPage, disableNext, disablePrev } = usePagenation(data, options);\n\n  // Render sliceData and buttons to go to next or previous page\n  return (\n    // your JSX code here\n  );\n}\n```\n\n## Comming Soon Another Hooks 🔥\n\n## API\n\n### usePagenation(data, options)\n\nAccepts two parameters:\n\n- **`data`** - (_Array_): Data to be paginated.\n- **`options`** - (_Object_): Options used to configure pagination.\n\n### Options\n\n- **`sliceSize`** - (_Number_, _default_: 4): The number of data items to display per page.\n- **`currentPages`** - (_Number_, _default_: 1): The currently active page.\n- **`config`** - (_Object_, _optional_): An object that can be used to configure the pagination with the following properties:\n  - **`sortKey`** - (_Keyof T_, _optional_): A property to specify the key in the data to be used for sorting. If not provided, the data will not be sorted.\n  - **`sortOrder`** - (_String_,** _optional_,** _default_: `asc`): Data sort order. The accepted value is `asc` or `desc`.\n\n### Return Value\n\n`usePagenation` returns an object with the following properties:\n\n- **`sliceData`** - (_Array_): Data that has been sliced according to the options.\n- **`nextPage`** - (_Function_): Function to go to the next page.\n- **`prevPage`** - (_Function_): Function to go to the previous page.\n- **`disableNext`** - (_Boolean_): Indicates whether the button to go to the next page should be `disabled` or not.\n- **`disablePrev`** - (_Boolean_): (Boolean): Indicates whether the button to go to the previous page should be `disabled` or not.\n- **`currentPage`** - (_Number_): Indicates the currently `active` page\n\n## Example\n\n```jsx\nimport usePagenation from \"./hooks/usePagenation\";\n\nfunction ExampleComponent() {\n  const data = [\n    \"item 1\",\n    \"item 2\",\n    \"item 3\",\n    \"item 4\",\n    \"item 5\",\n    \"item 6\",\n    \"item 7\",\n    \"item 8\",\n    \"item 9\",\n    \"item 10\",\n  ];\n  const options = { sliceSize: 4, currentPages: 1 };\n\n  const { sliceData, nextPage, prevPage, disableNext, disablePrev } = usePagenation(data, options);\n\n  return (\n    <div>\n      {sliceData.map((item, index) => (\n        <p key={index}>{item}</p>\n      ))}\n      <button onClick={prevPage} disabled={disablePrev}>\n        Previous\n      </button>\n      <button onClick={nextPage} disabled={disableNext}>\n        Next\n      </button>\n    </div>\n  );\n}\n```\n\n## How to contribute\n\nPlease make sure to read the [Contributing Guide](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors) before making a pull request.\n\n## License\n\nMIT\n\n\n","readmeFilename":"README.md"}