{"id":18715556,"url":"https://github.com/rawnly/crontab-sentence","last_synced_at":"2026-05-18T06:39:05.408Z","repository":{"id":78840721,"uuid":"475644143","full_name":"rawnly/crontab-sentence","owner":"rawnly","description":"Parse a sentence to cron expression","archived":false,"fork":false,"pushed_at":"2023-03-23T10:56:25.000Z","size":833,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T11:49:37.887Z","etag":null,"topics":["cron","react","regex","typescript"],"latest_commit_sha":null,"homepage":"https://crontab-sentence.fedevitale.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rawnly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T22:51:35.000Z","updated_at":"2023-03-09T02:56:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"72b474a5-2d7a-4329-9a31-11e3f74f0054","html_url":"https://github.com/rawnly/crontab-sentence","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rawnly/crontab-sentence","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fcrontab-sentence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fcrontab-sentence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fcrontab-sentence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fcrontab-sentence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawnly","download_url":"https://codeload.github.com/rawnly/crontab-sentence/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fcrontab-sentence/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cron","react","regex","typescript"],"created_at":"2024-11-07T13:09:12.022Z","updated_at":"2026-05-18T06:39:05.381Z","avatar_url":"https://github.com/rawnly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crontab Sentence\n\u003e A simple function that transforms sentences into cron expressions.\n\u003e Sentences syntax is partially inspired by [crontab.guru](https://crontab.guru)\n\n## Installation\n\n```sh\n\tyarn add crontab-sentence\n```\n\n## Usage\nFor syntax reference [check-out tests](/apps/syntax/__tests__/sentence-to-cron.test.ts)\n\n```ts\n\timport { parseSentence } from 'crontab-sentence'\n\n\t// Weeks aliased to days\n\tconsole.log(parseSentence('At 23:59 every 2 weeks in March')) //=\u003e 59 23 */14 3 *\n\tconsole.log(parseSentence('At 23:59 every 14 days in June')) //=\u003e 59 23 */14 6 *\n```\n\n### Supported Units\nAll weekdays and months are supported in both extended and short way (ex: Mon -\u003e Monday, Jan -\u003e January etc)\n\n- **HOURS**\n  - `hours`\n  - `hour`\n  - `hr`\n  - `hrs`\n- **MINUTES**\n  - `minutes`\n  - `minute`\n  - `min`\n  - `mins`\n  - `m`\n- **WEEKS**\n  - `weeks`\n  - `week`\n  - `wk`\n  - `wks`\n- **MONTHS**\n  - `months`\n  - `month`\n\n\n### Example Sentences\n\u003e The module is not case sensitive\n\n- `At 22:00 on Friday`\n- `At 22:00 every Monday`\n- `At 1pm on Friday`\n- `At 12pm on Monday`\n- `At 23 every 2 months`\n- `Every Tuesday in June`\n- `At 23:59 every 14 days in March`\n- `At 3pm every 2 weeks in April`\n\n## ⚠️ Disclaimer\nThis module is not intended to be used in a production environment.\nIt is buggy and may not correctly parse every \"sentence\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Fcrontab-sentence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawnly%2Fcrontab-sentence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Fcrontab-sentence/lists"}