Cron-转换器:针对 Node.js 和浏览器
一款专为 Node.js 和浏览器打造的 Cron 字符串转换器,可进行解析和转换。
通过以下方式进行安装:
- Npm:yarn add cron-converter 或 npm install cron-converter --save
- Bower:bower install cron-converter --save
Node.js 使用示例:
1. 导入模块:var Cron = require('cron-converter');
2. 创建实例:var cronInstance = new Cron();
3. 解析 Cron 字符串:cronInstance.fromString('*/10 9-17 1 * *');
解析结果为:'*/10 9-17 1 * *'
167.14KB
文件大小:
评论区