{"id":19541243,"url":"https://github.com/jonkirathe/count-down-timer","last_synced_at":"2025-04-26T16:32:19.081Z","repository":{"id":196151370,"uuid":"694643535","full_name":"jonkirathe/count-down-timer","owner":"jonkirathe","description":"This is an Angular timer that can be used with Angularv16 and above which supports standalone.","archived":false,"fork":false,"pushed_at":"2024-09-10T19:54:24.000Z","size":156,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T19:41:57.490Z","etag":null,"topics":["angular","angular16","timer-clock","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@kirathe/count-down-timer?activeTab=readme","language":"TypeScript","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/jonkirathe.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":"2023-09-21T12:07:49.000Z","updated_at":"2025-04-03T18:04:35.000Z","dependencies_parsed_at":"2024-10-24T01:21:21.900Z","dependency_job_id":"c0a81c65-de8b-4f8f-85b6-6c67320c8021","html_url":"https://github.com/jonkirathe/count-down-timer","commit_stats":null,"previous_names":["jonnykratz/count-down-timer","jonkirathe/count-down-timer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkirathe%2Fcount-down-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkirathe%2Fcount-down-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkirathe%2Fcount-down-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkirathe%2Fcount-down-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonkirathe","download_url":"https://codeload.github.com/jonkirathe/count-down-timer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250096182,"owners_count":21374252,"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":["angular","angular16","timer-clock","typescript"],"created_at":"2024-11-11T03:09:24.819Z","updated_at":"2025-04-26T16:32:18.708Z","avatar_url":"https://github.com/jonkirathe.png","language":"TypeScript","readme":"\n# @kirathe/count-down-timer\n[![Love Angular badge](https://img.shields.io/badge/angular-love-blue?logo=angular\u0026angular=love)](https://www.github.com/angular/angular)\n\nSimple, easy-to-use, countdown for angular\n\n![Static Badge](https://img.shields.io/badge/build-passing-brightgreen)\n![npm](https://img.shields.io/npm/v/%40kirathe%2Fcount-down-timer)\n![npm collaborators](https://img.shields.io/npm/collaborators/%40kirathe%2Fcount-down-timer)\n![GitHub Repo stars](https://img.shields.io/github/stars/JonnyKratz/count-down-timer)\n![GitHub all releases](https://img.shields.io/github/downloads/Jonnykratz/count-down-timer/total)\n![GitHub Sponsors](https://img.shields.io/github/sponsors/Jonnykratz)\n![GitHub language count](https://img.shields.io/github/languages/count/Jonnykratz/count-down-timer)\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Jonnykratz/count-down-timer)\n![GitHub followers](https://img.shields.io/github/followers/Jonnykratz)\n![GitHub forks](https://img.shields.io/github/forks/JonnyKratz/count-down-timer)\n![X (formerly Twitter) URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2Fkirathendegwa)\n![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/kirathendegwa)\n![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/JonnyKratz/count-down-timer/main)\n\n## Usage\n\n### 1. Install\n\n```\nnpm install @kirathe/count-down-timer --save\n```\n\nimport `CountDownTimerComponent`。\n\n```typescript\nimport { CountDownTimerComponent } from '@kirathe/count-down-timer';\n\n@Component({\n  selector: 'app-header',\n  standalone: true,\n  imports: [CommonModule, CountDownTimerComponent],\n  template: `\n      \u003ccount-down-timer [dDay]=\"date\"\u003e\u003c/count-down-timer\u003e\n  `,\n  styleUrls: ['./header.component.scss'],\n})\nexport class HeaderComponent { date = new Date('2023-12-06 04:29:40'); }\n```\n\n### 2、Template\n\n```html\nIf you want to use the default template, you can use the following code:\n\u003ccount-down-timer [dDay]=\"date\"\u003e\u003c/count-down-timer\u003e\n\nIf you want to customize the template, you can use the following code:\n    \u003ccount-down-timer [countDownTimerTemplate]=\"timerTemplate\" [dDay]=\"date\"\u003e\n        \u003cng-template\n            #timerTemplate\n            let-days=\"daysToDDay\"\n            let-hours=\"hoursToDDay\"\n            let-minutes=\"minutesToDDay\"\n            let-seconds=\"secondsToDDay\"\u003e\n            \u003clabel class=\"text-danger\"\u003e\n\t\t\tCount Down To The Next Release: {{ days }}\n              \u003ca class=\"h6\"\u003eDay(s) {{ hours }}: {{ minutes }}: {{ seconds }}\u003c/a\u003e\n\t\t\t\u003c/label\u003e\n        \u003c/ng-template\u003e\n    \u003c/count-down-timer\u003e\n```\n\n\n## Troubleshooting\n\nPlease follow this guidelines when reporting bugs and feature requests:\n\n1. Use [GitHub Issues](https://github.com/Jonnykratz/count-down-timer/issues) board to report bugs and feature requests (not our email address)\n2. Please **always** write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.\n\nThanks for understanding!\n\n### License\n\nThe MIT License (see the [LICENSE](https://github.com/Jonnykratz/count-down-timer/blob/main/LICENSE) file for the full text)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkirathe%2Fcount-down-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonkirathe%2Fcount-down-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkirathe%2Fcount-down-timer/lists"}