{"id":17419872,"url":"https://github.com/bendrucker/next-tick-debounce","last_synced_at":"2025-07-21T04:31:53.818Z","repository":{"id":65992443,"uuid":"41868782","full_name":"bendrucker/next-tick-debounce","owner":"bendrucker","description":"Debounce multiple synchronous function calls into a single async call","archived":false,"fork":false,"pushed_at":"2018-11-13T19:35:07.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T23:59:21.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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}},"created_at":"2015-09-03T15:49:45.000Z","updated_at":"2023-07-30T18:41:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"55ef073e-d6bd-41cb-9509-9217bd694d20","html_url":"https://github.com/bendrucker/next-tick-debounce","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"60a3a4a7e5c0ffb3dbf03aba6c0ce81a6d82a518"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fnext-tick-debounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fnext-tick-debounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fnext-tick-debounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fnext-tick-debounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/next-tick-debounce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226867826,"owners_count":17694818,"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","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":"2024-10-17T02:34:54.667Z","updated_at":"2024-11-28T06:16:51.775Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-tick-debounce [![Build Status](https://travis-ci.org/bendrucker/next-tick-debounce.svg?branch=master)](https://travis-ci.org/bendrucker/next-tick-debounce)\n\n\u003e Debounce multiple synchronous function calls into a single async call\n\n\n## Install\n\n```\n$ npm install --save next-tick-debounce\n```\n\n\n## Usage\n\n```js\nvar debounce = require('next-tick-debounce')\nvar i = 0\nvar debounced = debounce(function () {\n  console.log(i++)  \n})\n\ndebounced()\ndebounced()\ndebounced()\n\n//=\u003e 0 (only called once)\n\nsetTimeout(debounced, 10)\n\n//=\u003e 1\n```\n\nThe debounced function runs with the last set of arguments/context.\n\n## API\n\n#### `debounce(fn)` -\u003e `function`\n\n##### fn\n\n*Required*  \nType: `fn`\n\nA function that should run at most once per tick.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fnext-tick-debounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fnext-tick-debounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fnext-tick-debounce/lists"}