{"id":21565123,"url":"https://github.com/cfware/cleanable-interval","last_synced_at":"2025-03-18T05:17:28.719Z","repository":{"id":57101024,"uuid":"177243498","full_name":"cfware/cleanable-interval","owner":"cfware","description":"A variant of setInterval that returns a cleanup function.","archived":false,"fork":false,"pushed_at":"2023-10-15T15:24:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T21:38:10.085Z","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/cfware.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-03-23T04:23:05.000Z","updated_at":"2022-08-13T03:26:02.000Z","dependencies_parsed_at":"2025-01-24T11:53:57.691Z","dependency_job_id":null,"html_url":"https://github.com/cfware/cleanable-interval","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcleanable-interval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcleanable-interval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcleanable-interval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcleanable-interval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/cleanable-interval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160055,"owners_count":20408021,"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-24T10:18:30.138Z","updated_at":"2025-03-18T05:17:28.696Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# @cfware/cleanable-interval [![NPM Version][npm-image]][npm-url]\n\nA variant of setInterval that returns a cleanup function.\n\n## Usage\n\n```js\nimport cleanableInterval from '@cfware/cleanable-interval';\n\nlet iter = 0;\nconst cleanupFn = cleanableInterval(() =\u003e {\n\titer++;\n\tconsole.log(`Iteration ${iter} of 2`);\n\tif (iter \u003e 1) {\n\t\tcleanupFn();\n\t}\n}, 100);\n```\n\n\n[npm-image]: https://img.shields.io/npm/v/@cfware/cleanable-interval.svg\n[npm-url]: https://npmjs.org/package/@cfware/cleanable-interval\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fcleanable-interval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Fcleanable-interval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fcleanable-interval/lists"}