{"id":18901117,"url":"https://github.com/regular/pull-debounce","last_synced_at":"2026-03-03T19:30:19.718Z","repository":{"id":65371455,"uuid":"42943520","full_name":"regular/pull-debounce","owner":"regular","description":"a debouncing pull-stream","archived":false,"fork":false,"pushed_at":"2017-03-19T16:44:18.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-27T00:24:53.123Z","etag":null,"topics":["debounce","pull-stream","stream"],"latest_commit_sha":null,"homepage":"","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/regular.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}},"created_at":"2015-09-22T15:42:12.000Z","updated_at":"2018-03-12T16:23:50.000Z","dependencies_parsed_at":"2023-01-19T22:35:16.793Z","dependency_job_id":null,"html_url":"https://github.com/regular/pull-debounce","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fpull-debounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fpull-debounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fpull-debounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fpull-debounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/pull-debounce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886059,"owners_count":19713420,"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":["debounce","pull-stream","stream"],"created_at":"2024-11-08T08:55:14.242Z","updated_at":"2026-03-03T19:30:19.645Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","readme":"# pull-debounce\n[![NPM](https://nodei.co/npm/pull-debounce.png)](https://nodei.co/npm/pull-debounce/)\n\ndebounce for pull-streams\n\n## Example\n\n``` js\nvar pull = require('pull-stream')\nvar debounce = require('pull-debounce')\n\nfunction timedSource(data) {\n  return pull(\n    pull.values(data),\n    pull.asyncMap(function(item, cb) {\n      setTimeout(function() {\n        cb(null, item[1])\n      }, item[0]);\n    })\n  )\n}\n\npull(\n  timedSource([\n    [0,   0],\n    [250, 1],\n    [10,  2],\n    [250, 3],\n    [2000,4],\n    [10,  5]\n  ]),\n  debounce(200),\n  pull.log()\n)\n// =\u003e 0,2,3,5\n```\n\n## Credits\n\nMany thanks to [@amsross](https://github.com/amsross), who provided valuable feedback, bug reports and code\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fpull-debounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Fpull-debounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fpull-debounce/lists"}