npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

one-cron

v0.4.3

Published

A Cron Expression Component Based React and Ant Design

Downloads

22

Readme

One-Cron

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

image npm version npm downloads

Cron Expressions

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

| Expression | Means | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | 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

| Name | Type | Default | Description | | -------------- | -------- | --------------- | ------------------------------------------------------------------------------ | | lang | enum | 'en_US' | 选项:'zh_CN','en_US','zh_TW' | | onChange | Function | | 默认传来一个参数,为对象类型,提供 format 方法,可以拿到对应的 cron expression | | cronExpression | String | '0 0 0 * * ?' | 通过 cronExpression 的规则显示初始值 | | showRecentTime | boolean | false | 显示最近 5 次生成时间 | | options | Array | 全部 | 数组值选项:'day', 'week', 'month', 'hour', 'minute' | | disabled | boolean | false | 不可操作 | | beginTime | number | 0 | 可选择的起始时间 | | endTime | number | 24 | 可选择的结束时间 | | multiple | boolean | true | 支持多选和单选,默认多选 | | onValidate | Function | | 校验选择“周”,“月”,“小时”时,是否未填写。 该回调函数返回布尔值,True表示未填写。 | | errorMessage | string | | 校验错误的提示语 |

License

MIT