Skip to content

dsh-cron

Verified

dsh-cron · v0.1.0 · MIT

Cron 解析:解析 5 字段 cron 表达式,返回人类可读描述与接下来 N 次执行时间

Install

dsh plugin add dsh-cron

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Tags

Readme

dsh-cron · Cron 解析

解析 5 字段 cron 表达式,返回人类可读描述与接下来 N 次执行时间。纯 Node 实现。

提供的工具

工具 作用
cron_parse 解析 cron 表达式 → 描述 + 下次执行时间

安装

dsh plugin add dsh-cron

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-cron"

用法示例

这个 cron 表达式什么时候跑
→ 调用 cron_parse(expr="*/5 * * * *", count=5)