{"id":17855315,"url":"https://github.com/romansky/jscron","last_synced_at":"2025-07-07T22:15:34.287Z","repository":{"id":5082639,"uuid":"6244874","full_name":"romansky/JsCron","owner":"romansky","description":"Javascript cron parser, schedule date generator","archived":false,"fork":false,"pushed_at":"2020-06-27T19:20:42.000Z","size":18,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-27T06:38:52.057Z","etag":null,"topics":["coffeescript","cron","javascript","javascript-cron-parser","schedule"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"FlexMonkey/Plum-O-Meter","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romansky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-16T13:36:33.000Z","updated_at":"2024-02-25T11:12:07.000Z","dependencies_parsed_at":"2022-07-08T10:22:38.231Z","dependency_job_id":null,"html_url":"https://github.com/romansky/JsCron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2FJsCron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2FJsCron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2FJsCron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2FJsCron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romansky","download_url":"https://codeload.github.com/romansky/JsCron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221763763,"owners_count":16877032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coffeescript","cron","javascript","javascript-cron-parser","schedule"],"created_at":"2024-10-28T02:03:43.460Z","updated_at":"2024-10-28T02:03:44.855Z","avatar_url":"https://github.com/romansky.png","language":"TypeScript","readme":"JsCron [![Build Status](https://travis-ci.org/romansky/JsCron.png)](https://travis-ci.org/romansky/JsCron)\n======\n\nJavascript cron parser, schedule date generator\n\n### Scala version can be found [here](https://github.com/romansky/scron)\n\n## Usage\n\t\n\n\tvar cron = \"0 * * * * *\";\n\tvar aMinute = 1000 * 60;\n\tvar startTime = Date.now();\n\tvar endTime = startTime + aMinute*5;\n\tres = require('jscron').jscron.parse(cron,startTime,endTime) \n\tconsole.log(res)\n\t#\u003e [1350397740000,1350397800000,1350397860000,1350397920000,1350397980000]\n\t/* The above in the first second for the next five minutes */\n\tres.forEach(function(i){ console.log(new Date(i))})\n\t#\u003e Tue Oct 16 2012 16:29:00 GMT+0200 (IST)\n\t#\u003e Tue Oct 16 2012 16:30:00 GMT+0200 (IST)\n\t#\u003e Tue Oct 16 2012 16:31:00 GMT+0200 (IST)\n\t#\u003e Tue Oct 16 2012 16:32:00 GMT+0200 (IST)\n\t#\u003e Tue Oct 16 2012 16:33:00 GMT+0200 (IST)\n\t\n## Supported Cron Formatting\n\n\n### General Format\n\n\t*\t*\t*\t*\t*\t*\n\t|\t|\t|\t|\t|\t|day of week(0-6)\n\t|\t|\t|\t|\t|month(1-12)\n\t|\t|\t|\t|day of month(1-31)\n\t|\t|\t|hour(0-23)\n\t|\t|minute(0-59)\n\t|seconds(0-59)\n\nSee [WikiPedia](http://en.wikipedia.org/wiki/Cron) for more information about the format\n\n### Supported Formatting Of Specific Fields\n\n * `*`  all the options for that field\n * `*/2` starting from the first option, every other option\n * `0` only use the explicitly provided option\n * `2,4,9` use list of values provided, separated by comma\n\n## Installation\n\n\tnpm install jscron\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fjscron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromansky%2Fjscron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fjscron/lists"}