{"id":23693370,"url":"https://github.com/naoxink/timer","last_synced_at":"2026-01-18T20:30:16.642Z","repository":{"id":70792032,"uuid":"133357036","full_name":"naoxink/timer","owner":"naoxink","description":"Timers made easy","archived":false,"fork":false,"pushed_at":"2018-05-16T11:56:53.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T03:52:18.571Z","etag":null,"topics":["countdown-timer","intervals","javascript","timers"],"latest_commit_sha":null,"homepage":"http://naoxink.epizy.com","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/naoxink.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":"2018-05-14T12:26:10.000Z","updated_at":"2024-01-12T16:27:59.000Z","dependencies_parsed_at":"2023-02-24T01:46:08.180Z","dependency_job_id":null,"html_url":"https://github.com/naoxink/timer","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/naoxink%2Ftimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoxink%2Ftimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoxink%2Ftimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoxink%2Ftimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naoxink","download_url":"https://codeload.github.com/naoxink/timer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758895,"owners_count":19692041,"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":["countdown-timer","intervals","javascript","timers"],"created_at":"2024-12-30T03:51:48.593Z","updated_at":"2026-01-18T20:30:16.589Z","avatar_url":"https://github.com/naoxink.png","language":"JavaScript","readme":"# Timer\n\n### Usage example\n```javascript\nnew Timer({\n  'duration': '00:00:05',\n  'onStart': function(){\n    console.log('Empieza!')\n  },\n  'onTick': function(time, timeDiff){\n    console.log(time, timeDiff)\n  },\n  'onEnd': function(){\n    console.log('Fin!')\n  }\n})\n```\nYou can see it in action [here](http://naoxink.hol.es/idletea/?lang=en)\n\nOptions\n---\n\n|Param|value|description\n|---|---|---|\nduration|`string` Format: `00:00:00`| Regressive count. If `null`, `undefined` or `00:00:00` the timer will be infinite (ascendent)\nonStart|`function`|Function executed at the start\nonTick|`function`|Function executed each tick (`time`, `timeDiff` milliseconds difference since las tick)\nonEnd|`function`|Function executed at the end\n\n\nMethods\n---\n\n|Method|Description\n|---|---|\n`resetTime`|Resets the time left\n`runTimer`|Starts the timer\n`getTimeLeft`|Returns the time left in an object`{ hours: 0, minutes: 0, seconds: 0 }`\n`reset`|Resets and run the timer\n`stop`|Stops the timer\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoxink%2Ftimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaoxink%2Ftimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoxink%2Ftimer/lists"}