{"id":20854024,"url":"https://github.com/zephyrpersonal/rate-limiting","last_synced_at":"2026-04-12T08:33:48.803Z","repository":{"id":89375127,"uuid":"124045451","full_name":"zephyrpersonal/rate-limiting","owner":"zephyrpersonal","description":"generating a counter by rules and trigger when reach the limit","archived":false,"fork":false,"pushed_at":"2018-03-06T09:04:47.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T01:35:39.061Z","etag":null,"topics":["counter","rate-limit","rate-limiting"],"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/zephyrpersonal.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}},"created_at":"2018-03-06T08:24:54.000Z","updated_at":"2018-03-06T09:07:00.000Z","dependencies_parsed_at":"2023-05-29T03:45:38.878Z","dependency_job_id":null,"html_url":"https://github.com/zephyrpersonal/rate-limiting","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"98c2c2807b4a1f0e2450a34c46cfc675e4c9c6d7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Frate-limiting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Frate-limiting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Frate-limiting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Frate-limiting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephyrpersonal","download_url":"https://codeload.github.com/zephyrpersonal/rate-limiting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243222184,"owners_count":20256229,"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":["counter","rate-limit","rate-limiting"],"created_at":"2024-11-18T03:24:09.254Z","updated_at":"2025-12-24T08:45:38.178Z","avatar_url":"https://github.com/zephyrpersonal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RATE-LIMITING\n\n## simple counter fires callback when reach limit\n\n```bash\nnpm install rate-limiting-counter -S\n```\n\n```js\nconst Counter = require('rate-limiting-counter')\n\nconst counter = new Counter({\n  interval: 1000 // every seconds to reset inner count,\n  max: 100 // max count in one loop,\n  onReachLimit: () =\u003e {} // callback when hit limit in one loop,\n  autoStart: true // if start the counter loop when constructor has called\n})\n\ncounter.add() // add 1 to inner count\ncounter.stop() // stop counter\ncounter.resume() // resume counter\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrpersonal%2Frate-limiting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephyrpersonal%2Frate-limiting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrpersonal%2Frate-limiting/lists"}