{"id":18789371,"url":"https://github.com/nomeyho/countdown","last_synced_at":"2025-12-26T02:30:18.175Z","repository":{"id":57131821,"uuid":"302926765","full_name":"Nomeyho/countdown","owner":"Nomeyho","description":"An SVG countdown component for the Web","archived":false,"fork":false,"pushed_at":"2020-10-21T20:02:12.000Z","size":645,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-23T20:05:39.148Z","etag":null,"topics":["animation","component","countdown","javascript","svg","web"],"latest_commit_sha":null,"homepage":"https://nomeyho.github.io/countdown/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nomeyho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-10T15:02:42.000Z","updated_at":"2020-10-21T21:31:49.000Z","dependencies_parsed_at":"2022-09-02T09:11:06.838Z","dependency_job_id":null,"html_url":"https://github.com/Nomeyho/countdown","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/Nomeyho%2Fcountdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nomeyho%2Fcountdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nomeyho%2Fcountdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nomeyho%2Fcountdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nomeyho","download_url":"https://codeload.github.com/Nomeyho/countdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239709755,"owners_count":19684300,"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":["animation","component","countdown","javascript","svg","web"],"created_at":"2024-11-07T21:07:26.457Z","updated_at":"2025-12-26T02:30:18.139Z","avatar_url":"https://github.com/Nomeyho.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Countdown\n\u003e An SVG countdown component for the Web.\n\n## Demo\n[Live demo](https://nomeyho.github.io/countdown/)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"docs/video.gif\" width=\"300\"\u003e\n\u003c/p\u003e\n\n## Install\n```\nnpm install @nomeyho/countdown\n```\n\n## Usage\nImport `countdown.js` and call `countdown(...);` with \na reference to the parent element as first argument.\n\n```html\n\u003cbody\u003e\n    \u003cdiv id=\"container\"\u003e\u003c/div\u003e\n    \u003cscript src=\"countdown.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      const container = document.getElementById('container');\n      countdown(container);\n    \u003c/script\u003e\n\u003c/body\u003e\n```\n\n## Options\n```javascript\ncountdown(container, {\n    width = 500,\n    height = 500,\n    color = '#888FF7',\n    strokeWidth = '10px',\n    onDraw = (i) =\u003e console.log(`Drawing ${i}`),\n});\n```\n| Option | Description | Default |\n|---|---|---|\n| start | The countdown start value (between 10 and 0) | `10` |\n| width | The canvas's width in pixels | `500` |\n| height | The canva's height in pixels | `500` | \n| color | The digit's color | `'#888FF7'` |\n| strokeWidth | The digit's stroke width | `'10px'` |\n| onDraw | A callback function called after each digit draw | `undefined` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomeyho%2Fcountdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomeyho%2Fcountdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomeyho%2Fcountdown/lists"}