{"id":21473816,"url":"https://github.com/bell-kevin/thecouponcode","last_synced_at":"2025-03-17T07:26:46.211Z","repository":{"id":43422959,"uuid":"508124783","full_name":"bell-kevin/theCouponCode","owner":"bell-kevin","description":"Story Your online store likes to give out coupons for special occasions. Some customers try to cheat the system by entering invalid codes or using expired coupons.  Task Your mission: Write a function called checkCoupon which verifies that a coupon code is valid and not expired.  A coupon is no more valid on the day AFTER the expiration date. All dates will be passed as strings in this format: \"MONTH DATE, YEAR\".  Examples: checkCoupon(\"123\", \"123\", \"July 9, 2015\", \"July 9, 2015\")  ===  true checkCoupon(\"123\", \"123\", \"July 9, 2015\", \"July 2, 2015\")  ===  false","archived":false,"fork":false,"pushed_at":"2022-07-06T22:49:43.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T16:48:32.162Z","etag":null,"topics":["codewars-kata-solution"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bell-kevin.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":"2022-06-28T02:13:51.000Z","updated_at":"2022-06-28T02:14:39.000Z","dependencies_parsed_at":"2022-09-10T19:40:14.936Z","dependency_job_id":null,"html_url":"https://github.com/bell-kevin/theCouponCode","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/bell-kevin%2FtheCouponCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FtheCouponCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FtheCouponCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2FtheCouponCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bell-kevin","download_url":"https://codeload.github.com/bell-kevin/theCouponCode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243990661,"owners_count":20379833,"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":["codewars-kata-solution"],"created_at":"2024-11-23T10:18:58.766Z","updated_at":"2025-03-17T07:26:46.193Z","avatar_url":"https://github.com/bell-kevin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# theCouponCode\nStory Your online store likes to give out coupons for special occasions. Some customers try to cheat the system by entering invalid codes or using expired coupons.  Task Your mission: Write a function called checkCoupon which verifies that a coupon code is valid and not expired.  A coupon is no more valid on the day AFTER the expiration date. All dates will be passed as strings in this format: \"MONTH DATE, YEAR\".  Examples: checkCoupon(\"123\", \"123\", \"July 9, 2015\", \"July 9, 2015\")  ===  true checkCoupon(\"123\", \"123\", \"July 9, 2015\", \"July 2, 2015\")  ===  false\n\n\n== We're Using GitHub Under Protest ==\n\nThis project is currently hosted on GitHub.  This is not ideal; GitHub is a\nproprietary, trade-secret system that is not Free and Open Souce Software\n(FOSS).  We are deeply concerned about using a proprietary system like GitHub\nto develop our FOSS project.  We have an\n[open {bug ticket, mailing list thread, etc.} ](INSERT_LINK) where the\nproject contributors are actively discussing how we can move away from GitHub\nin the long term.  We urge you to read about the\n[Give up GitHub](https://GiveUpGitHub.org) campaign from\n[the Software Freedom Conservancy](https://sfconservancy.org) to understand\nsome of the reasons why GitHub is not a good place to host FOSS projects.\n\nIf you are a contributor who personally has already quit using GitHub, please\n[check this resource](INSERT_LINK) for how to send us contributions without\nusing GitHub directly.\n\nAny use of this project's code by GitHub Copilot, past or present, is done\nwithout our permission.  We do not consent to GitHub's use of this project's\ncode in Copilot.\n\n![Logo of the GiveUpGitHub campaign](https://sfconservancy.org/img/GiveUpGitHub.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Fthecouponcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbell-kevin%2Fthecouponcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Fthecouponcode/lists"}