{"id":13507773,"url":"https://github.com/rcdilorenzo/repeatex","last_synced_at":"2025-03-30T09:33:03.912Z","repository":{"id":26065157,"uuid":"29508804","full_name":"rcdilorenzo/repeatex","owner":"rcdilorenzo","description":"Natural language for repeating dates","archived":false,"fork":false,"pushed_at":"2019-03-22T19:51:01.000Z","size":89,"stargazers_count":54,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T07:33:14.635Z","etag":null,"topics":["calendar","elixir","json-client","live-demo","natural-language","parsing","repeat"],"latest_commit_sha":null,"homepage":"https://repeatex.rcdilorenzo.io","language":"Elixir","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/rcdilorenzo.png","metadata":{"files":{"readme":"README.eex.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":"2015-01-20T02:57:03.000Z","updated_at":"2024-07-25T23:11:25.000Z","dependencies_parsed_at":"2022-09-06T04:02:09.056Z","dependency_job_id":null,"html_url":"https://github.com/rcdilorenzo/repeatex","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/rcdilorenzo%2Frepeatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdilorenzo%2Frepeatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdilorenzo%2Frepeatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdilorenzo%2Frepeatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcdilorenzo","download_url":"https://codeload.github.com/rcdilorenzo/repeatex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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":["calendar","elixir","json-client","live-demo","natural-language","parsing","repeat"],"created_at":"2024-08-01T02:00:38.857Z","updated_at":"2025-03-30T09:33:03.565Z","avatar_url":"https://github.com/rcdilorenzo.png","language":"Elixir","funding_links":[],"categories":["Date and Time","General Libraries"],"sub_categories":[],"readme":"Repeatex\n========\n\n![Test Status](https://travis-ci.org/rcdilorenzo/repeatex.svg)\n![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)\n\u003cbr\u003e\n\n![Repeatex](logo.png)\n\nRepeatex is a library for parsing, scheduling, and formatting repeating events. It handles many different expressions from \"daily\" to \"on the 2nd tuesday and 4rd thursday of every other month\". See [Usage](#usage) and [Examples](#examples) for more detail. It also can act as a validator / formatter for a JSON client which is described in the [Integration with Phoenix](#integration-with-phoenix) section.\n\n# Usage\n\n## Parsing\n\n\u003c%= parse.(\"mon-sat every week\") %\u003e\n\u003c%= parse.(\"mumbo jumbo\") %\u003e\n\n## Scheduling\n\n\u003c%= schedule.(Repeatex.parse(\"every other day\"), today) %\u003e\n\u003c%= schedule.(Repeatex.parse(\"mon and fri every other week\"), today) %\u003e\n\u003c%= schedule.(Repeatex.parse(\"on the 3rd tuesday of every month\"), today) %\u003e\n\n## Formatting\n\n\u003c%= format.(Repeatex.parse(\"on the 3rd tuesday of every month\")) %\u003e\n\u003c%= format.(Repeatex.parse(\"every week on monday\")) %\u003e\n\n# Installation\n\nAs repeatex isn't finished yet, you'll need to specify this repository location to use in your projects:\n```elixir\n{:repeatex, github: \"rcdilorenzo/repeatex\"}\n```\n\n# Integration with Phoenix\n\nIf you've got a phoenix application and you'd like to integrate repeatex for validation / formatting for a JSON client, simply add the following to your router:\n\n```elixir\nforward \"/repeatex\", Repeatex.Web\n```\n\nSee [test/controllers/README.md](test/controllers/README.md) for how to use the API.\n\n# Contribution\n\nIf you would like to contribute to the parser of other parts of this project, please check out the [demo](http://rcdilorenzo.github.io/repeatex), and find other expressions that still need to be parsed, filing issues as needed. Even better, feel free to tackle any issues in the repository by submitting a friendly pull-request. Thanks!\n\n# Examples\n\n\u003c%= examples %\u003e\n\n# TODO - Parsing\n\n\u003c%= pending %\u003e\n\n# Roadmap\n\n- [x] Parsing natural language\n- [x] Validate parsed structure\n- [ ] Scheduler to determine next date - **Daily, Weekly, and Monthly are done**\n- [x] Output natural description of repeat\n\n# License\n\nCopyright (c) 2015-2016 Christian Di Lorenzo\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\nall copies 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\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdilorenzo%2Frepeatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcdilorenzo%2Frepeatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdilorenzo%2Frepeatex/lists"}