{"id":16293699,"url":"https://github.com/axetroy/interval","last_synced_at":"2025-04-09T11:13:59.215Z","repository":{"id":143735144,"uuid":"91561444","full_name":"axetroy/interval","owner":"axetroy","description":"patch for interval","archived":false,"fork":false,"pushed_at":"2019-04-08T12:50:14.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T22:34:48.559Z","etag":null,"topics":["interval","javascript","setinterval"],"latest_commit_sha":null,"homepage":"https://axetroy.github.io/interval/","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/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-05-17T09:55:10.000Z","updated_at":"2020-08-10T15:29:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe636313-5f6e-4775-82a3-b4041ad6d0a1","html_url":"https://github.com/axetroy/interval","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/axetroy%2Finterval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Finterval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Finterval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Finterval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/interval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027412,"owners_count":21035594,"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":["interval","javascript","setinterval"],"created_at":"2024-10-10T20:12:06.745Z","updated_at":"2025-04-09T11:13:59.198Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","readme":"# interval\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/interval.svg)](https://greenkeeper.io/)\n\npatch for interval\n\n[Online Demo](https://axetroy.github.io/interval/)\n\n### Installation\n\n```bash\nnpm install @axetroy/interval\n```\n\n### Usage\n\n```javascript\nimport interval from '@axetroy/interval';\n\nlet number = 1;\n\nlet cancel = interval(() =\u003e {\n  number = number + 1;\n  // block thread\n  if (number % 5 === 0) {\n    alert(number);\n  }\n  // cancelable\n  if (number \u003e= 20) {\n    cancel();\n  }\n}, 1000);\n```\n\n### Run the Demo\n\n```bash\ngit clone https://github.com/axetroy/interval.git\nyarn\nyarn start\n```\n\n### License\n\nThe [MIT License](https://github.com/axetroy/interval/blob/master/LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Finterval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Finterval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Finterval/lists"}