{"id":30180920,"url":"https://github.com/streamich/set-harmonic-interval","last_synced_at":"2025-08-12T08:06:17.140Z","repository":{"id":35077870,"uuid":"204227239","full_name":"streamich/set-harmonic-interval","owner":"streamich","description":"one timer for all setInterval() with identical ms delay","archived":false,"fork":false,"pushed_at":"2023-12-15T11:56:59.000Z","size":1740,"stargazers_count":12,"open_issues_count":22,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T15:51:51.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-25T00:24:55.000Z","updated_at":"2023-11-17T22:00:12.000Z","dependencies_parsed_at":"2024-06-18T18:37:58.238Z","dependency_job_id":null,"html_url":"https://github.com/streamich/set-harmonic-interval","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/set-harmonic-interval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fset-harmonic-interval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fset-harmonic-interval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fset-harmonic-interval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fset-harmonic-interval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/set-harmonic-interval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fset-harmonic-interval/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"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-08-12T02:00:09.011Z","response_time":80,"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-08-12T08:06:06.267Z","updated_at":"2025-08-12T08:06:17.133Z","avatar_url":"https://github.com/streamich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# set-harmonic-interval\n\nWorks similar to `setInterval`, but calls all callbacks scheduled using `setHarmonicInterval` all at once, which have same\ndelay in milliseconds.\n\n## Install\n\n```\nnpm install set-harmonic-interval\n```\n\n## Usage\n\nIn below example `1` and `2` will always be printed together every second.\n\n```js\nconst { setHarmonicInterval, clearHarmonicInterval } = require('set-harmonic-interval');\n\nsetHarmonicInterval(() =\u003e console.log(1), 1000);\nsetTimeout(() =\u003e {\n  setHarmonicInterval(() =\u003e console.log(2), 1000);\n}, 500);\n```\n\n\n## License\n\n[Unlicense](LICENSE) \u0026mdash; public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fset-harmonic-interval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Fset-harmonic-interval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fset-harmonic-interval/lists"}