{"id":18285941,"url":"https://github.com/exodusmovement/debounce-and-batch","last_synced_at":"2025-07-20T01:08:58.109Z","repository":{"id":40002045,"uuid":"274929837","full_name":"ExodusMovement/debounce-and-batch","owner":"ExodusMovement","description":"debounce and batch-process events","archived":false,"fork":false,"pushed_at":"2022-11-07T18:47:22.000Z","size":181,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-02-15T00:42:06.367Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExodusMovement.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}},"created_at":"2020-06-25T13:56:49.000Z","updated_at":"2023-12-10T11:16:32.000Z","dependencies_parsed_at":"2022-06-26T06:04:09.856Z","dependency_job_id":null,"html_url":"https://github.com/ExodusMovement/debounce-and-batch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fdebounce-and-batch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fdebounce-and-batch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fdebounce-and-batch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fdebounce-and-batch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExodusMovement","download_url":"https://codeload.github.com/ExodusMovement/debounce-and-batch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247988068,"owners_count":21029046,"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-11-05T13:18:18.103Z","updated_at":"2025-04-09T06:21:11.160Z","avatar_url":"https://github.com/ExodusMovement.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debounce-and-batch\n\ndebounce and batch-process events\n\n## Usage\n\n```js\nconst debounceAndBatch = require('debounce-and-batch')\n\n// say you want to batch process throwing away the trash\nconst emptyTrash = debounceAndBatch({\n  name: 'trash batch-processor',\n  interval: 1000,\n  concurrency,\n  onBatch: async (items) =\u003e {\n    console.log(`emptying ${items.length} from trash`)\n  },\n})\n\neventEmitter.on('trash', emptyTrash)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexodusmovement%2Fdebounce-and-batch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexodusmovement%2Fdebounce-and-batch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexodusmovement%2Fdebounce-and-batch/lists"}