{"id":21503067,"url":"https://github.com/jagi/set-interval-time-fn","last_synced_at":"2025-03-17T13:43:09.626Z","repository":{"id":57120032,"uuid":"142183664","full_name":"jagi/set-interval-time-fn","owner":"jagi","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-24T16:48:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T08:47:07.058Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jagi.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":"2018-07-24T16:15:31.000Z","updated_at":"2018-07-24T16:48:29.000Z","dependencies_parsed_at":"2022-08-23T12:21:02.711Z","dependency_job_id":null,"html_url":"https://github.com/jagi/set-interval-time-fn","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/jagi%2Fset-interval-time-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagi%2Fset-interval-time-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagi%2Fset-interval-time-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagi%2Fset-interval-time-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagi","download_url":"https://codeload.github.com/jagi/set-interval-time-fn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244043878,"owners_count":20388657,"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-23T18:19:28.110Z","updated_at":"2025-03-17T13:43:09.603Z","avatar_url":"https://github.com/jagi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jagi/set-interval-time-fn\n\n## Example usage\n\n```js\nimport {\n  setIntervalTimeFn,\n  clearIntervalTimeFn,\n} from \"@jagi/set-interval-time-fn\";\n\nconst start = Date.now();\n\nconst timerId = setIntervalTimeFn(\n  () =\u003e {\n    console.log(`${Date.now() - start} ms elapsed`);\n  },\n  time =\u003e {\n    // Start interval from 1 second and increase it by 1 second on each execution.\n    return !time ? 1000 : time + 1000;\n  },\n);\n\nsetTimeout(() =\u003e {\n  clearIntervalTimeFn(timerId);\n}, 10 * 1000); // Clear interval after 20 seconds.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagi%2Fset-interval-time-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagi%2Fset-interval-time-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagi%2Fset-interval-time-fn/lists"}