{"_id":"@1ohooks/use-debounce","_rev":"1-3d2922f7fd8848a6fdb0b3ff78468c77","name":"@1ohooks/use-debounce","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@1ohooks/use-debounce","version":"0.1.0","main":"dist/packages/useDebounce/src/index.js","types":"dist/packages/useDebounce/src/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","_id":"@1ohooks/use-debounce@0.1.0","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-x9+FNiK7j1EHI0nD8gmeo1m6/EiHjHAR1tWm/bk/luEFsbWTiWaYeTCA6BuecBRePbxN+s5gefJxhplXrnk2Jw==","shasum":"15274a7803801d5cca09432a5f55f9940299578c","tarball":"https://registry.npmjs.org/@1ohooks/use-debounce/-/use-debounce-0.1.0.tgz","fileCount":7,"unpackedSize":3117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZTaX7TX/FlESa25vdlQT4fe5RvBxVSKdHJisGfUY8zAiBqYgV+1r3ZWKxu3kiwKkd/EqNfolZp+ZOk4NtXbWfRsw=="}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-debounce_0.1.0_1695583136103_0.8614131965466345"},"_hasShrinkwrap":false},"0.1.1":{"name":"@1ohooks/use-debounce","version":"0.1.1","main":"dist/packages/useDebounce/src/index.js","types":"dist/packages/useDebounce/src/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","description":"[![Version](https://img.shields.io/npm/v/@1ohooks/use-debounce.svg)](https://www.npmjs.org/package/@1ohooks/use-debounce) [![Coverage Status](https://coveralls.io/repos/github/1ohooks/use-debounce/badge.svg?branch=master)](https://coveralls.io/github/1oho","_id":"@1ohooks/use-debounce@0.1.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-//oi/ApqJWR1YaWvyikloYJnWqzqf4mf0V2KpuA7pLZHPMq29Rds5ylvlKkRzw4FeBrOVpBHjyTfthZdBw8yTw==","shasum":"165b9e5e9bf9cec8ec0a0bf5d84e526390d73bfc","tarball":"https://registry.npmjs.org/@1ohooks/use-debounce/-/use-debounce-0.1.1.tgz","fileCount":8,"unpackedSize":5637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPlH17NZy0et7QEqSH+IPLfJ8ibPUrEnC3qRuO+4Fh3wIhAKUPv1h6YHmu6Ly58UEQy3Kmdv0nQSDysh/KGCVUijte"}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-debounce_0.1.1_1695590912441_0.2659813645498905"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-24T19:18:56.001Z","0.1.0":"2023-09-24T19:18:56.228Z","modified":"2023-09-24T21:28:32.840Z","0.1.1":"2023-09-24T21:28:32.643Z"},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"keywords":[],"license":"ISC","readme":"# @1ohooks/use-debounce\n\n[![Version](https://img.shields.io/npm/v/@1ohooks/use-debounce.svg)](https://www.npmjs.org/package/@1ohooks/use-debounce)\n[![Coverage Status](https://coveralls.io/repos/github/1ohooks/use-debounce/badge.svg?branch=master)](https://coveralls.io/github/1ohooks/use-debounce?branch=master)\n[![Downloads](https://img.shields.io/npm/dm/@1ohooks/use-debounce.svg)](https://www.npmjs.com/package/@1ohooks/use-debounce)\n[![Try on RunKit](https://badge.runkitcdn.com/@1ohooks/use-debounce.svg)](https://runkit.com/npm/@1ohooks/use-debounce)\n\nThe `@1ohooks/use-debounce` package provides a custom React hook for implementing debouncing in your applications.\n\n## Installation\n\nYou can install `@1ohooks/use-debounce` using npm or yarn:\n\n```sh\nnpm install @1ohooks/use-debounce\n# or\nyarn add @1ohooks/use-debounce\n```\n\n## Documentation\n\n### useDebounce\n\nThe `useDebounce` hook allows you to debounce a function, delaying its execution until after a specified delay period.\n\n```javascript\nimport { useDebounce } from '@1ohooks/use-debounce';\n\n// Usage example\nfunction MyComponent() {\n  const [debouncedFunction, cancelDebounce] = useDebounce(() => {\n    // Your debounced function logic\n  }, 300);\n\n  // Call debouncedFunction to execute the debounced logic\n\n  return (\n    // Your component JSX\n  );\n}\n```\n\n#### Parameters\n\n- `callback` (Function): The function to be debounced.\n- `delay` (number): The delay time in milliseconds before executing the debounced function.\n- `options` (Object, optional): Additional options for customizing the debounce behavior.\n  - `immediate` (boolean, optional): If `true`, the callback will be executed immediately on the leading edge. Default is `false`.\n  - `maxWait` (number, optional): The maximum time in milliseconds to wait between invocations. Default is `undefined`.\n\n#### Return Values\n\n- `debouncedFunction` (Function): The debounced function that you should call to trigger the debounced logic.\n- `cancelDebounce` (Function): A function to cancel the debounce and prevent the debounced function from being executed.\n\n## Requirements\n\n- React 16 or higher.\n\n## Usage\n\nYou can use the `useDebounce` hook in your React components to debounce functions and improve performance. It is particularly useful for handling user input, search requests, and more.\n\nFor advanced usage and customization options, refer to the hook documentation.\n\nThank you for using `@1ohooks/use-debounce` to implement debouncing in your React applications. We hope you find it valuable!","readmeFilename":"readme.md","description":"[![Version](https://img.shields.io/npm/v/@1ohooks/use-debounce.svg)](https://www.npmjs.org/package/@1ohooks/use-debounce) [![Coverage Status](https://coveralls.io/repos/github/1ohooks/use-debounce/badge.svg?branch=master)](https://coveralls.io/github/1oho"}