cron-parser icon indicating copy to clipboard operation
cron-parser copied to clipboard

Node.js library for parsing crontab instructions

Results 46 cron-parser issues
Sort by recently updated
recently updated
newest added

I have a cron string `0 0 9 * * ?`. If I parse the cron string and then call `.stringify()` it is changed to `0 0 9 * *...

question

I believe we can get better results from `stringify()` on stepped ranges by a couple of condition changes: https://github.com/harrisiirak/cron-parser/blob/f36281a84612b84395b1b275c7e74a2e5e9b83f1/lib/field_stringify.js#L13 I think that changing `singleRange.end === max - step + 1`...

enhancement
feature-request

错误复现 ``` let parser = require('cron-parser'); let interval = parser.parseExpression('* * * */7 * *'); var fields = JSON.parse(JSON.stringify(interval.fields)); fields.dayOfMonth = [1,8,15,22,29]; var modifiedInterval = parser.fieldsToExpression(fields,true); var cronString = modifiedInterval.stringify(true);...

enhancement

This test case: https://github.com/harrisiirak/cron-parser/blob/f36281a84612b84395b1b275c7e74a2e5e9b83f1/test/expression.js#L938 If I understand the expression correctly, should be “At 02:10 on day-of-month 12 and on every day-of-week from Saturday through Sunday in August.” The test case...

bug

A dependent library could use this knowing only that `expression: Iterable` (where multiple date libraries support valueOf() already (including JS Date and luxon DateTime). Fixes #82

Ideally, Cron job cannot be used to schedule a job in a seconds interval. Can you provide an option to disable it and throw an error if some user schedules...

feature-request
priority-low

Would love support for full dayOfWeek names. Current situation is the backend has existing expressions that use full day names that wont parse using this library.

feature-request
priority-low

Any thoughts on adding a `this` function? Same logic as `next` and `prev`, but doesn't first move the "time pointer" forward or backward. I think it would be useful for...

feature-request

I was trying to find a library that allowed my to check the current time against a cron pattern to see if it matches. So far this library is the...

enhancement
feature-request

Since version 3.0.0 of cron-parser it is not possible anymore to pass a currentDate timestamp of 0. It will be ignored and will instead use the current local time/date: This...