Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

one-cron

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-cron

一款以Cron Expressions为桥梁的定时调度组件,支持国际化等功能。

  • 0.1.4
  • npm
  • Socket score

Version published
Weekly downloads
88
increased by4300%
Maintainers
1
Weekly downloads
 
Created
Source

One-Cron

一款以Cron Expressions为桥梁的定时调度组件,支持国际化等功能。

Cron Expressions

下表简单介绍了一下Cron Expressions的语法,详情请看官方介绍

ExpressionMeans
0 0 12 * * ?Fire at 12:00 PM (noon) every day
0 15 10 ? * *Fire at 10:15 AM every day
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

Documentation

NameTypeDefaultDescription
langNumber00表示Chinese,1表示English,暂时只支持中英文切换
onChangeFunction默认传来一个参数,为对象类型,提供format方法,可以拿到对应的cron expression
cronExpressionString'0 0 0 * * ?'通过cronExpression的规则显示初始值

License

MIT

Keywords

FAQs

Package last updated on 04 Jun 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc