Skip to content

Releases: trapcodeio/cron-time

New feature and more tests.

05 Jan 13:01
Compare
Choose a tag to compare

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)

14 Jul 18:56
Compare
Choose a tag to compare

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

25 Jan 16:20
Compare
Choose a tag to compare

Thanks to @localpcguy

Issue: #14