Releases: trapcodeio/cron-time
Releases · trapcodeio/cron-time
New feature and more tests.
Thanks to @dkirchhof #19 this package now supports setting multiple days
, hours
and minutes
using an array.
e.g
CronTime.everyHourAt([10, 20, 30])
// will return
10,20,30 * * * *
This led me to write more tests to make sure every function works as expected.
See test.ts
for more usage examples.
2.0.0 - Change Export/Import method. (Breaking Change)
All export =
was converted to export default
in order to move forward and stop this error: #16
Old way of importing
const CronTime = require('cron-time-generator');
// OR Typescript
import CronTime from "cron-time-generator";
New way of importing
// Javascript
const {CronTime} = require('cron-time-generator');
// OR
const {default: CronTime} = require('cron-time-generator');
// Typescript
import {CronTime} from "cron-time-generator";
// OR
import CronTime from "cron-time-generator";
See the change log for a list of changes
Add LICENSE FILE
Thanks to @localpcguy
Issue: #14