{"id":18470821,"url":"https://github.com/nefe/one-cron","last_synced_at":"2025-09-09T08:45:22.383Z","repository":{"id":32500117,"uuid":"135401431","full_name":"nefe/one-cron","owner":"nefe","description":"a time scheduling component based cron expressions","archived":false,"fork":false,"pushed_at":"2023-02-21T07:20:09.000Z","size":2024,"stargazers_count":16,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-02T06:36:37.458Z","etag":null,"topics":["cron-expression","react","typescript"],"latest_commit_sha":null,"homepage":"","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/nefe.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2018-05-30T06:58:11.000Z","updated_at":"2024-09-10T09:56:52.000Z","dependencies_parsed_at":"2024-10-23T01:47:02.292Z","dependency_job_id":"9496128d-dd43-4269-970e-16a76e25ff16","html_url":"https://github.com/nefe/one-cron","commit_stats":{"total_commits":156,"total_committers":13,"mean_commits":12.0,"dds":"0.47435897435897434","last_synced_commit":"11de6be5a3606175415c70a2fc64c06a85fac102"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nefe%2Fone-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nefe%2Fone-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nefe%2Fone-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nefe%2Fone-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nefe","download_url":"https://codeload.github.com/nefe/one-cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223317849,"owners_count":17125605,"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":["cron-expression","react","typescript"],"created_at":"2024-11-06T10:14:57.563Z","updated_at":"2024-11-06T10:14:57.651Z","avatar_url":"https://github.com/nefe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# One-Cron\n\n一款以 Cron Expressions 为桥梁的定时调度组件，支持国际化等功能。\n\n![image](https://travis-ci.com/nefe/one-cron.svg?branch=master)\n[![npm version](https://badge.fury.io/js/one-cron.png)](https://badge.fury.io/js/one-cron)\n[![npm downloads](https://img.shields.io/npm/dt/one-cron.svg?style=flat-square)](https://www.npmjs.com/package/one-cron)\n\n## Cron Expressions\n\n下表简单介绍了一下 Cron Expressions 的 \b 语法，详情请看[官方介绍](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm)\n\n| Expression          | Means                                                                                                                                         |\n| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |\n| 0 0 12 \\* \\* ?      | Fire at 12:00 PM (noon) every day                                                                                                             |\n| 0 15 10 ? \\* \\*     | Fire at 10:15 AM every day                                                                                                                    |\n| 0 0/5 14,18 \\* \\* ? | Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, AND fire every 5 minutes starting at 6:00 PM and ending at 6:55 PM, every day |\n\n## Documentation\n\n| Name           | Type     | Default         | Description                                                                    |\n| -------------- | -------- | --------------- | ------------------------------------------------------------------------------ |\n| lang           | enum     | 'en_US'         | 选项:'zh_CN','en_US','zh_TW'                                                   |\n| onChange       | Function |                 | 默认传来一个参数，为对象类型，提供 format 方法，可以拿到对应的 cron expression |\n| cronExpression | String   | '0 0 0 \\* \\* ?' | 通过 cronExpression 的规则显示初始值                                           |\n| showRecentTime | boolean  | false           | 显示最近 5 次生成时间                                                          |\n| options        | Array    | 全部            | 数组值选项：'day', 'week', 'month', 'hour', 'minute'                           |\n| disabled       | boolean  | false           | 不可操作                                                                       |\n| beginTime      | number   | 0               | 可选择的起始时间                                                               |\n| endTime        | number   | 24              | 可选择的结束时间                                                               |\n| multiple        | boolean   | true              | 支持多选和单选，默认多选                                                               |\n| onValidate        | Function   |               | 校验选择“周”，“月”，“小时”时，是否未填写。 该回调函数返回布尔值，True表示未填写。    |\n| errorMessage        | string   |               |  校验错误的提示语  |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnefe%2Fone-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnefe%2Fone-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnefe%2Fone-cron/lists"}