{"id":19253533,"url":"https://github.com/webcyou/countdown-timer-js","last_synced_at":"2025-09-14T23:17:36.267Z","repository":{"id":57209830,"uuid":"89939826","full_name":"webcyou/countdown-timer-js","owner":"webcyou","description":"CountDownTimerJS - RealTime CountDown Timer JavaScript Library","archived":false,"fork":false,"pushed_at":"2017-05-12T08:39:33.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T03:46:47.237Z","etag":null,"topics":["counter","javascript","timer"],"latest_commit_sha":null,"homepage":"","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/webcyou.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":"2017-05-01T16:13:48.000Z","updated_at":"2021-02-06T14:48:21.000Z","dependencies_parsed_at":"2022-09-03T17:51:13.220Z","dependency_job_id":null,"html_url":"https://github.com/webcyou/countdown-timer-js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/webcyou/countdown-timer-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fcountdown-timer-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fcountdown-timer-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fcountdown-timer-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fcountdown-timer-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webcyou","download_url":"https://codeload.github.com/webcyou/countdown-timer-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fcountdown-timer-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270451243,"owners_count":24586127,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["counter","javascript","timer"],"created_at":"2024-11-09T18:31:32.283Z","updated_at":"2025-09-14T23:17:36.249Z","avatar_url":"https://github.com/webcyou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CountDownTimerJS\nCountDownTimerJS - RealTime CountDown Timer JavaScript Library\n\n### これは何？\nカウントダウンタイマー、JavaScriptライブラリです。\n\n### demo\n[デモページ](https://webcyou.github.io/countdown-timer-js/)\n\n###  Quick start\n\n**Clone the repo:**\n```\ngit clone git@github.com:webcyou/countdown-timer-js.git\n```\n\n**Install with [Bower](http://bower.io):**\n```\nbower install countdown-timer.js\n```\n\n**Install with [npm](https://www.npmjs.com):**\n\n```\nnpm install countdown-timer-js\n```\n\n\n### Basic Usage\n\n```\n\u003cscript src=\"countdown_timer.js\"\u003e\u003c/script\u003e\n```\n\n### Basic Format\n```\n\"hh:mm:ss\"\n```\n\n\n### Start DataSet\n\n```\nnew CountDownTimer(\"hh:mm:ss\", callBack);\n```\n\n\n**example**\n\n```\nnew CountDownTimer(\"12:11:02\", function(times, parameters) {\n    console.log(times);\n});\n```\nor\n\n```\nnew CountDownTimer(\"12:11:2\", function(times, parameters) {\n    console.log(times);\n});\n```\n\nor Unix Timestamp (milliseconds)\n\n```\nnew CountDownTimer(953994, function(times, parameters) {\n    console.log(times);\n});\n```\n\n**subscribe**\n\n```\nlet timer = new CountDownTimer(\"hh:mm:ss\");\n\ntimer.subscribe(function(times, parameters) {\n  ...\n});\n\n```\n\n\n### CallBack\n\n\n```\nnew CountDownTimer(Times, function(times, parameters) {\n  ...\n});\n```\n\n**time**\n\ntimes: string\n```\n\"hh:mm:ss\"\n```\n\nprams: Time\n\n### CallBack Parameters Reference\n\nTime Object\n\n| ParametersName | value         | Detail                | \n| --------------- |:---------------:| -------------------- |\n| id | number | created date Id |\n| splitTimes | string[] | [hours, minute, second] |\n| H | number | hours |\n| M | number | minute |\n| S | number | minute |\n| times | string | \"hh:mm:ss\" |\n| isFinal | boolean | To become true is the one time of 00:00:00 . |\n| createdAt | string | Time that was created |\n\n### Public Function Reference\n\n```\nlet timer = new CountDownTimer(\"hh:mm:ss\");\n```\n\n| FunctionName | value         | Detail                | \n| --------------- |:---------------:| -------------------- |\n| setTimes | string | \"hh:mm:ss\" change the times |\n| getTimes | Time | get the Time Object |\n| getTimesStr | string | \"hh:mm:ss\" get the times |\n| isFinal | boolean | To become true is the one time of 00:00:00 |\n| subscribe | Function | subscribe CallBack function |\n| computeDuration | number to string | Unix Timestamp (milliseconds) convert to \"hh:mm:ss\" format |\n\n### Start develop\n```\nnpm install\ngulp \n```\n\n```\nServer started http://localhost:8088\nLiveReload started on port 35729\n```\n\n### Start Test\n\n**mocha**\n```\ngulp mocha\n```\n\n**mocha watch**\n```\ngulp mocha.watch\n```\n\n### build Source\n\n```\ngulp dist\n```\n\n### Author\nDaisuke Takayama\n[Web帳](http://www.webcyou.com/)\n\n\n### License\nCopyright (c) 2017 Daisuke Takayama\nReleased under the [MIT license](http://opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcyou%2Fcountdown-timer-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebcyou%2Fcountdown-timer-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcyou%2Fcountdown-timer-js/lists"}