{"id":19057421,"url":"https://github.com/femessage/count-down","last_synced_at":"2025-04-24T05:22:27.747Z","repository":{"id":56378009,"uuid":"199424785","full_name":"FEMessage/count-down","owner":"FEMessage","description":"⏳a user friendly vue count-down component","archived":false,"fork":false,"pushed_at":"2020-11-11T10:26:44.000Z","size":1877,"stargazers_count":0,"open_issues_count":5,"forks_count":5,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-18T13:09:49.028Z","etag":null,"topics":["count-down","vue-components"],"latest_commit_sha":null,"homepage":"https://femessage.github.io/count-down/","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/FEMessage.png","metadata":{"files":{"readme":"README-zh.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-07-29T09:46:10.000Z","updated_at":"2020-11-11T10:22:52.000Z","dependencies_parsed_at":"2022-08-15T17:40:23.679Z","dependency_job_id":null,"html_url":"https://github.com/FEMessage/count-down","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fcount-down","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fcount-down/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fcount-down/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fcount-down/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FEMessage","download_url":"https://codeload.github.com/FEMessage/count-down/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250567901,"owners_count":21451519,"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":["count-down","vue-components"],"created_at":"2024-11-08T23:57:04.587Z","updated_at":"2025-04-24T05:22:27.722Z","avatar_url":"https://github.com/FEMessage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# count-down\n\n[![Build Status](https://badgen.net/travis/FEMessage/count-down/master)](https://travis-ci.com/FEMessage/count-down)\n[![NPM Download](https://badgen.net/npm/dm/@femessage/count-down)](https://www.npmjs.com/package/@femessage/count-down)\n[![NPM Version](https://badgen.net/npm/v/@femessage/count-down)](https://www.npmjs.com/package/@femessage/count-down)\n[![NPM License](https://badgen.net/npm/license/@femessage/count-down)](https://github.com/FEMessage/count-down/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/FEMessage/count-down/pulls)\n[![Automated Release Notes by gren](https://img.shields.io/badge/%F0%9F%A4%96-release%20notes-00B2EE.svg)](https://github-tools.github.io/github-release-notes/)\n\n极易使用的倒计时组件 😃\n\n![示例](https://i.loli.net/2019/11/15/khawbTnFuvHOd7N.gif)\n\n## Table of Contents\n\n* [Introduction](#introduction)\n  * [Use requestAnimationFrame](#use-requestanimationframe)\n  * [支持毫秒级计时](#支持毫秒级计时)\n  * [智能的默认 format](#智能的默认-format)\n* [Links](#links)\n* [Install](#install)\n* [Inspiration](#inspiration)\n* [Contributing](#contributing)\n* [Contributors](#contributors)\n* [License](#license)\n\n## Introduction\n\n### Use requestAnimationFrame\n\ncount-down 内部使用 requestAnimationFrame 计时，无论是浏览器进程任务繁忙亦或是页面在后台被挂起过，count-down 都依然能保持精确。\n\n### 支持毫秒级计时\n\n通过 slot 支持\n\n### 智能的默认 format\n\n默认 format 会根据传入的 days, hours, minutes, seconds 动态调整。比如传入 hours=1 时，默认 format 就是 `hh 时 mm 分 ss 秒`\n\n[⬆ Back to Top](#table-of-contents)\n\n## Links\n\n* [API 文档](https://femessage.github.io/count-down/)\n\n[⬆ Back to Top](#table-of-contents)\n\n## Install\n\n```sh\nyarn add @femessage/count-down\n```\n\n[⬆ Back to Top](#table-of-contents)\n\n## Inspiration\n\napi 设计和实现参考了\n\n* [taro-ui](https://taro-ui.aotu.io/#/docs/countdown)\n* [vant](https://youzan.github.io/vant/#/zh-CN/count-down)\n\n[⬆ Back to Top](#table-of-contents)\n\n## Contributing\n\nFor those who are interested in contributing to this project, such as:\n\n* report a bug\n* request new feature\n* fix a bug\n* implement a new feature\n\nPlease refer to our [contributing guide](https://github.com/FEMessage/.github/blob/master/CONTRIBUTING.md).\n\n[⬆ Back to Top](#table-of-contents)\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://donaldshen.github.io/portfolio\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/19591950?v=4\" width=\"100px;\" alt=\"Donald Shen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDonald Shen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/FEMessage/count-down/commits?author=donaldshen\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/FEMessage/count-down/commits?author=donaldshen\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/FEMessage/count-down/commits?author=donaldshen\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- prettier-ignore --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n[⬆ Back to Top](#table-of-contents)\n\n## License\n\n[MIT](./LICENSE)\n\n[⬆ Back to Top](#table-of-contents)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemessage%2Fcount-down","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffemessage%2Fcount-down","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemessage%2Fcount-down/lists"}