
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
dsh-cron-parse
Advanced tools
DSH 插件:解析 5 段标准 cron 表达式,提供校验、中文人性化描述、各字段展开值,以及未来若干次运行时间预览。纯 ESM、零依赖、无构建。
dsh plugin --profile <name> add file:./plugins/dsh-cron-parse
# 或 npm 发布后:dsh plugin --profile <name> add dsh-cron-parse
安装后组合层会挂载 cron_parse 工具(cron-parse 层 id)。
cron_parse参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
expression | string | 是 | 5 段标准 cron:minute hour dayOfMonth month dayOfWeek |
count | number | 否 | 未来运行次数(1–10),默认 5 |
tz | string | 否 | IANA 时区名(如 Asia/Shanghai、UTC),默认本地时区 |
now | string | 否 | ISO 8601 基准时间,默认当前时间 |
返回规范值:{ ok, valid, description, fields: { minute, hour, dom, month, dow }, nextRuns, timezone, errors }。
| 语法 | 示例 | 含义 |
|---|---|---|
* | * | 全部取值 |
*/n | */15(分钟) | 每 n(自最小值起) |
a-b | 1-5(星期) | 闭区间 |
a-b/n | 0-30/10 | 区间内步进 |
| 列表 | 1,15,30 | 多值并集 |
| 名称 | jan-dec、sun-sat | 月名/星期名,大小写不敏感 |
| 周日 | 0 或 7 | 0/7 都表示周日,展开后归一为 0 |
各字段取值范围:分钟 0-59,小时 0-23,日 1-31,月 1-12,星期 0-7。
*)时,某天只要满足其一即触发(OR);仅一个受限时用它;都不受限时每天触发。例如 0 0 1,15 * 1 表示每月 1 日、15 日以及每个周一触发。* 时才视为“不受限”;*/n、a-b、列表均视为受限。now 的下一分钟边界起,逐日扫描(日内按 hour×minute 枚举匹配时刻),最多迭代 100000 天(仅兜底,可满足表达式 + count≤10 永不触顶)。可满足性预判会提前拦截“日/月无可行组合”的永不触发表达式(如 0 0 30 2 *,2 月没有 30 日)并返回 ok:false。tz(默认本地)时区解释;nextRuns 为带时区偏移的 ISO 8601 字符串。| 表达式 | 描述 |
|---|---|
0 9 * * * | 每天 09:00 |
30 8 * * 1-5 | 每周一至五 08:30 |
15 * * * * | 每小时的第 15 分钟 |
*/15 * * * * | 每 15 分钟 |
0 0 1 jan * | 每年1月1日 00:00 |
复杂表达式(如 dow/dom 并集、多字段组合)退化为「字段原文 + 各字段展开值」。
L、W、#、? 等特殊字符。2 月 29 日 会被正确识别为可触发(约每 4 年一次)。挂载时自动执行 5 条自检(工作日 9 点 / 每 15 分钟 / 每年 1 月 1 日 / 非法值 / 2 月 30 日永不触发),证据行输出到日志,前缀 [dsh-cron-parse]。
MIT
FAQs
cron 表达式解析 / 人性化 / 下次运行预览工具(DSH 插件,零依赖)
The npm package dsh-cron-parse receives a total of 0 weekly downloads. As such, dsh-cron-parse popularity was classified as not popular.
We found that dsh-cron-parse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.