
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
能够把 cron 字符串翻译为可描述语言
入参:字符串、配置项
出参:可描述语言|cron 表达式不合法
配置项:翻译模板配置
能够校验 cron 表达式是否正确,返回 true(正确)、false(不是 cron 表达式)、object(部分频率错误)
能够把 cron 字符串转换为可识别的对象,可识别对象转换为 cron 表达式
输入 cron 表达式=>检查是否为正确的 cron 表达式,如果正确?自动识别类型=>输出可识别对象:返回 false
输入可识别对象=>检查是否为正确的 cron 表达式,如果正确?自动识别类型=>输出 cron 表达式:返回 false
正确的 cron 表达式规则
5、6、7 个字符串,如* * * * *、* * * * * ?、* * * * * ? *
正确的对象
{
//值范围:0-59
"second": {
"isCommon": false,
"list": ["1", { "start": "0", "end": "59", "step": "" }]
},
//值范围:0-59
"minute": {
"isCommon": true,
"list": undefined
},
//值范围:0-23
"hour": "",
//值范围:1-31
"day": "",
//值范围:1-12
"moth": "",
//值范围:0-6 1-7
"week": "",
//值范围:1970-2090
"year": ""
}
其他库: cron-parser、cronstrue
FAQs
This is a collection of cron expressions
We found that crons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.