{"id":22521236,"url":"https://github.com/instafluff/comfyclock","last_synced_at":"2026-01-23T06:20:34.254Z","repository":{"id":35133449,"uuid":"210996447","full_name":"instafluff/ComfyClock","owner":"instafluff","description":"The Comfiest Clock Events Set To World-Time! e.g. ComfyTimer.Every[ \"5 minutes\" ] = ( date ) =\u003e console.log( date );","archived":false,"fork":false,"pushed_at":"2022-07-07T12:38:41.000Z","size":177,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T04:55:10.861Z","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/instafluff.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}},"created_at":"2019-09-26T04:02:11.000Z","updated_at":"2022-07-28T13:01:09.000Z","dependencies_parsed_at":"2022-08-30T10:51:42.762Z","dependency_job_id":null,"html_url":"https://github.com/instafluff/ComfyClock","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/instafluff%2FComfyClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FComfyClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FComfyClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instafluff%2FComfyClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instafluff","download_url":"https://codeload.github.com/instafluff/ComfyClock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236752358,"owners_count":19199229,"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-12-07T05:10:15.003Z","updated_at":"2025-10-16T22:30:43.130Z","avatar_url":"https://github.com/instafluff.png","language":"JavaScript","funding_links":["https://github.com/sponsors/instafluff"],"categories":[],"sub_categories":[],"readme":"# ComfyClock\nThe Comfiest Clock Events Set To World-Time! Works in both Node and Browser!\n\n**ComfyClock** gives you an event set to the world clock for when you need code run at specific seconds, minutes, hours, or even days.\n\n```javascript\nComfyTimer.Every[ \"5 minutes\" ] = ( date ) =\u003e console.log( date );\n```\n\n## Instafluff ##\n\u003e *Like these projects? The best way to support my open-source projects is by becoming a Comfy Sponsor on GitHub!*\n\n\u003e https://github.com/sponsors/instafluff\n\n\u003e *Come and hang out with us at the Comfiest Corner on Twitch!*\n\n\u003e https://twitch.tv/instafluff\n\n## Instructions ##\n\n#### Node\n1. Install `comfyclock`\n```\nnpm install comfyclock --save\n```\n\n2. Add clock events using ComfyClock\n```javascript\nvar ComfyClock = require(\"comfyclock\");\nComfyClock.Every[ \"5s\" ] = ( date ) =\u003e console.log( \"Tick\", date );\nComfyClock.Every[ \"10s\" ] = ( date ) =\u003e console.log( \"Tock!\", date );\n// This will output: \"Tick\" at every 5th second (0, 5, 10, 15, ..., 55) and \"Tock\" at every 10th (0, 10, 20, ..., 50)\n```\n\n#### Browser\n1. Add `comfyclock.js`\n```\n\u003cscript src=\"comfyclock.min.js\"\u003e\u003c/script\u003e\n```\n\n2. Add clock events using ComfyClock\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"comfyclock.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n        ComfyClock.Every[ \"5s\" ] = ( date ) =\u003e console.log( \"Tick\", date );\n        ComfyClock.Every[ \"10s\" ] = ( date ) =\u003e console.log( \"Tock!\", date );\n        // This will output: \"Tick\" at every 5th second (0, 5, 10, 15, ..., 55) and \"Tock\" at every 10th (0, 10, 20, ..., 50)\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Example ##\n\n```javascript\nComfyClock.Every[ \"5 seconds\" ] = ( date ) =\u003e console.log( \"5th second!\", date );\nComfyClock.Every[ \"15s\" ] = ( date ) =\u003e console.log( \"15th second!\", date );\nComfyClock.Every[ \"1 minute\" ] = ( date ) =\u003e console.log( \"New minute!\", date );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstafluff%2Fcomfyclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstafluff%2Fcomfyclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstafluff%2Fcomfyclock/lists"}