{"id":21712503,"url":"https://github.com/youfoundron/finite-countdown","last_synced_at":"2026-04-16T14:03:42.654Z","repository":{"id":21852409,"uuid":"25175689","full_name":"youfoundron/finite-countdown","owner":"youfoundron","description":"Countdown plugin that accounts for timezone.","archived":false,"fork":false,"pushed_at":"2014-10-14T17:45:51.000Z","size":204,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T06:26:32.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/finite-countdown","language":"CoffeeScript","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/youfoundron.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":"2014-10-13T20:10:43.000Z","updated_at":"2021-03-10T15:00:59.000Z","dependencies_parsed_at":"2022-07-25T13:02:04.512Z","dependency_job_id":null,"html_url":"https://github.com/youfoundron/finite-countdown","commit_stats":null,"previous_names":["rongierlach/finite-countdown"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youfoundron/finite-countdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youfoundron%2Ffinite-countdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youfoundron%2Ffinite-countdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youfoundron%2Ffinite-countdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youfoundron%2Ffinite-countdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youfoundron","download_url":"https://codeload.github.com/youfoundron/finite-countdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youfoundron%2Ffinite-countdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269706650,"owners_count":24462206,"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-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-25T23:39:27.881Z","updated_at":"2026-04-16T14:03:42.609Z","avatar_url":"https://github.com/youfoundron.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Finite-Countdown\n\nA front-end countdown plugin that reflects the difference to an ending-time regardless of a user's local timezone.\n\n### Install\n\n```\nnpm-install \"finite-countdown\"\n```\n\n### Usage\n\n```\nvar finiteCountdown = require(\"finite-countdown\");\n\n// ending-time as a valid DateString\nvar end = \"2014/11/25 13:00:00\";\n\n// additional options\nvar opts = {\n  timezone: \"America/New_York\", // timezone in context of the ending-time\n  selector: \".countdown\",       // jquery selector for the countdown's container\n  format: \"dd:hh:mm:ss\",        // remaining time display format\n  delimiter: \":\",               // delimiting character\n  show_units: false,            // use unit strings instead of delimiter\n  remove_on_end: false          // remove countdown from the page upon completion\n};\n\n$(function() {\n\n  // start and display the countdown\n  finiteCountdown(end, opts);\n\n});\n\n```\n\n### Defaults\n\nFor supported Timezones see [Moment Timezone](http://momentjs.com/timezone/)\n```\ndefaults =\n  selector: \".countdown\"\n  timezone: \"America/Los_Angeles\"\n  format: \"hh:mm:ss\"\n  delimiter: \":\"\n  show_units: false\n  remove_on_end: false\n```\n\n### Format\n\n| Unit | Token | Output |\n| ---- | ----- | ------ |\n| **Days** | d | 0 1 ... 364 365  |\n|      | dd    | 00 01 ... 364 365 |  \n| **Hours** | h | 0 1 ... 22 23 |\n|      | hh    | 00 01 ... 22 23 |\n| **Minutes** | m | 0 1 ... 58 59 |\n|      | mm    | 00 01 ... 58 59 |\n| **Seconds** | s | 0 1 ... 58 59 |\n|      | ss    | 00 01 ... 58 59 |\n\n### Dependencies\n\n- [Moment.js](http://momentjs.com/) - Parse, validate, manipulate, and display dates in javascript.\n- [Moment Timezone](http://momentjs.com/timezone/) - Parse and display dates in any timezone.\n- [jQuery](http://jquery.com/)\n\n## LICENSE\n\nCopyright (c) 2014 Ron Gierlach\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoufoundron%2Ffinite-countdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoufoundron%2Ffinite-countdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoufoundron%2Ffinite-countdown/lists"}