@ablanc/simple-cron 中文文档教程
Simple cron
使用富有表现力的 API
Installation
```bash 简单地构建 cron 字符串 yarn add @ablanc/simple-cron
# 或者使用 npm
npm install @ablanc/simple-cron
## Usage/Examples
js const { every } = '@ablanc/simple-cron'
every(5).seconds() // */5 * * * * * 每(5).分钟() // */5 * * * * 每(5).小时() // * */5 * * * 每(5).days() // * * */5 * * 每(5).months() // * * * */5 * every(5).years() // * * * * */5
## Running Tests
To run tests, run the following command
庆典 纱线测试 ```
Simple cron
To simply build cron string using an expressive API
Installation
```bash yarn add @ablanc/simple-cron
# or using npm
npm install @ablanc/simple-cron
## Usage/Examples
js const { every } = '@ablanc/simple-cron'
every(5).seconds() // */5 * * * * * every(5).minutes() // */5 * * * * every(5).hours() // * */5 * * * every(5).days() // * * */5 * * every(5).months() // * * * */5 * every(5).years() // * * * * */5
## Running Tests
To run tests, run the following command
bash yarn test ```