{"id":31035958,"url":"https://github.com/webfactory/debounce","last_synced_at":"2026-01-20T16:38:02.705Z","repository":{"id":311916213,"uuid":"1045603809","full_name":"webfactory/debounce","owner":"webfactory","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-27T12:46:21.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T21:15:32.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webfactory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-27T12:44:51.000Z","updated_at":"2025-08-27T12:46:25.000Z","dependencies_parsed_at":"2025-08-27T21:15:34.402Z","dependency_job_id":"2466a0d1-d3e1-49b3-b9fa-464b71df0944","html_url":"https://github.com/webfactory/debounce","commit_stats":null,"previous_names":["webfactory/debounce"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/webfactory/debounce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fdebounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fdebounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fdebounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fdebounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webfactory","download_url":"https://codeload.github.com/webfactory/debounce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fdebounce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058575,"owners_count":25398173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-14T03:57:20.002Z","updated_at":"2026-01-20T16:38:02.699Z","avatar_url":"https://github.com/webfactory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debounce Utility\n\nThe `debounce` utility is a simple JavaScript function that limits the rate at which a particular callback function can be executed. It ensures that a function is only called after a specified delay period has passed since the last time it was invoked. This is particularly useful for optimizing performance in scenarios like handling user input events, where rapid calls can lead to unnecessary processing.\n\n## Installation\n\n```\nnpm install @webfactoryde/debounce\n```\n\n## Usage\n\nImport the `debounce` function in your module(s) and pass a callback that you want to rate-limit:\n\n```javascript\n// your module\nimport debounce from '@webfactoryde/debounce';\n\nfunction coolFunction() {\n    // do cool stuff\n}\n\nwindow.addEventListener('resize', debounce(coolFunction, 200));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fdebounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfactory%2Fdebounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fdebounce/lists"}