{"id":18501220,"url":"https://github.com/dighan/tickr","last_synced_at":"2025-05-14T07:31:36.997Z","repository":{"id":141964665,"uuid":"115721595","full_name":"dighan/tickr","owner":"dighan","description":"No dependencies, tiny and customizable JavaScript library to execute code repeatedly with fixed or dynamic delay.","archived":false,"fork":false,"pushed_at":"2017-12-29T18:32:08.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T01:41:23.147Z","etag":null,"topics":["delay","setinterval","timer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/dighan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-12-29T12:41:53.000Z","updated_at":"2017-12-29T18:07:57.000Z","dependencies_parsed_at":"2023-05-09T14:03:56.754Z","dependency_job_id":null,"html_url":"https://github.com/dighan/tickr","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/dighan%2Ftickr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dighan%2Ftickr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dighan%2Ftickr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dighan%2Ftickr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dighan","download_url":"https://codeload.github.com/dighan/tickr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254094910,"owners_count":22013657,"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":["delay","setinterval","timer"],"created_at":"2024-11-06T13:53:15.121Z","updated_at":"2025-05-14T07:31:36.974Z","avatar_url":"https://github.com/dighan.png","language":"JavaScript","readme":"# Tickr [![Build Status](https://travis-ci.org/dighan/tickr.svg?branch=master)](https://travis-ci.org/dighan/tickr)\n\nNo dependencies, tiny (`\u003c2kB`) and customizable JavaScript library to execute code repeatedly with fixed or dynamic delay.\n\n**Tickr** is subject to the [background browser mechanism](https://developers.google.com/web/updates/2017/03/background_tabs) and\ncannot guarantee the `delay` is always honoured between ticks.\n\n## Installation\n\nInstall the stable version with [`npm`](https://docs.npmjs.com/getting-started/what-is-npm):\n\n```shell\nnpm install TBD --save-dev\n```\n\nor include it with a [`\u003cscript\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) tag:\n\n```html\n\u003cscript src=\"TBD\" async\u003e\u003c/script\u003e\n```\n## Usage\n\nIntended to be bundled:\n\n```js\nimport createTicker from 'Tickr'\n\nconst ticker = createTicker({ delay: 250 }, function() {\n  console.log(\n    ticker.getDelay(),\n    ticker.getImmediate(),\n    ticker.getMaxTicks()\n  )\n}).start()\n```\n\nor in the browser:\n\n```js\nconst ticker = Tickr.createTicker({ delay: 250 }, function() {\n  console.log(\n    ticker.getDelay(),\n    ticker.getImmediate(),\n    ticker.getMaxTicks()\n  )\n}).start()\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdighan%2Ftickr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdighan%2Ftickr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdighan%2Ftickr/lists"}