{"id":13727032,"url":"https://github.com/RoyalIcing/soonerorlater","last_synced_at":"2025-05-07T22:30:46.720Z","repository":{"id":72483398,"uuid":"340564631","full_name":"RoyalIcing/soonerorlater","owner":"RoyalIcing","description":"JavaScript parser of natural language time periods","archived":false,"fork":false,"pushed_at":"2023-01-23T22:19:03.000Z","size":184,"stargazers_count":90,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T18:22:24.265Z","etag":null,"topics":["date-parser","javascript","natural-language","time-parsing","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/RoyalIcing.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-20T04:51:22.000Z","updated_at":"2024-07-02T20:40:29.000Z","dependencies_parsed_at":"2023-02-23T07:15:15.207Z","dependency_job_id":null,"html_url":"https://github.com/RoyalIcing/soonerorlater","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/RoyalIcing%2Fsoonerorlater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Fsoonerorlater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Fsoonerorlater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Fsoonerorlater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoyalIcing","download_url":"https://codeload.github.com/RoyalIcing/soonerorlater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965178,"owners_count":21832834,"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":["date-parser","javascript","natural-language","time-parsing","typescript"],"created_at":"2024-08-03T01:03:36.553Z","updated_at":"2025-05-07T22:30:45.487Z","avatar_url":"https://github.com/RoyalIcing.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e💬 📅 Sooner or Later\u003c/h1\u003e\n  \u003cp\u003eParse natural language dates\u003c/p\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=soonerorlater\"\u003e\n    \u003cimg src=\"https://badgen.net/bundlephobia/minzip/soonerorlater@0.1.0\" alt=\"minified and gzipped size\"\u003e\n    \u003cimg src=\"https://badgen.net/bundlephobia/min/soonerorlater@0.1.0\" alt=\"minified size\"\u003e\n    \u003cimg src=\"https://badgen.net/bundlephobia/dependency-count/soonerorlater@0.1.0\" alt=\"zero dependencies\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Install\n\n```console\nnpm add soonerorlater\n```\n\n- \u003chttps://unpkg.com/soonerorlater\u003e\n- \u003chttps://cdn.skypack.dev/soonerorlater\u003e\n- \u003chttps://esm.sh/soonerorlater\u003e\n\n## Examples\n\n```javascript\nimport { parse } from \"soonerorlater\";\n\nparse('Every Wednesday');\n/*\n{\n  repeats: 'weekly',\n  weekdays: new Set(['wednesday'])\n}\n*/\n\nparse('Mondays and Thursdays at 9:30am to 10:30am');\n/*\n{\n  repeats: 'weekly',\n  weekdays: new Set(['monday', 'thursday']),\n  startTime: { hours: 9, minutes: 30 },\n  endTime: { hours: 10, minutes: 30 }\n}\n*/\n```\n\n## Notes\n\n- Uses the library [parcook](https://github.com/RoyalIcing/parcook) for parsing.\n- TODO: support standard representations as result\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoyalIcing%2Fsoonerorlater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRoyalIcing%2Fsoonerorlater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoyalIcing%2Fsoonerorlater/lists"}