{"id":13789649,"url":"https://github.com/elysiajs/elysia-cron","last_synced_at":"2025-04-09T20:03:43.227Z","repository":{"id":64282635,"uuid":"574128426","full_name":"elysiajs/elysia-cron","owner":"elysiajs","description":"Plugin for Elysia that add support for running cronjob","archived":false,"fork":false,"pushed_at":"2024-12-23T15:26:29.000Z","size":220,"stargazers_count":19,"open_issues_count":14,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T20:03:36.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elysiajs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yaml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"SaltyAom"}},"created_at":"2022-12-04T14:14:54.000Z","updated_at":"2025-03-14T06:31:05.000Z","dependencies_parsed_at":"2024-07-16T14:22:33.489Z","dependency_job_id":"98655cac-4073-46fd-a1b2-ef373c5401d3","html_url":"https://github.com/elysiajs/elysia-cron","commit_stats":{"total_commits":37,"total_committers":5,"mean_commits":7.4,"dds":0.1351351351351351,"last_synced_commit":"027e7738908e1119921c5f5ae1013f1df8b17a6f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elysiajs%2Felysia-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elysiajs%2Felysia-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elysiajs%2Felysia-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elysiajs%2Felysia-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elysiajs","download_url":"https://codeload.github.com/elysiajs/elysia-cron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103864,"owners_count":21048245,"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":[],"created_at":"2024-08-03T22:00:31.201Z","updated_at":"2025-04-09T20:03:43.203Z","avatar_url":"https://github.com/elysiajs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/SaltyAom"],"categories":["Plugins"],"sub_categories":[],"readme":"# @elysiajs/cron\nPlugin for [elysia](https://github.com/elysiajs/elysia) that add support for running cronjob.\n\n## Installation\n```bash\nbun add @elysiajs/cron\n```\n\n## Example\n```typescript\nimport { Elysia } from 'elysia'\nimport { cron } from '@elysiajs/cron'\n\nconst app = new Elysia()\n    use(\n        cron({\n            name: 'heartbeat',\n            pattern: '*/1 * * * * *',\n            run() {\n                console.log(\"Heartbeat\")\n            }\n        }\n    )\n    .get('/stop', ({ store: { cron: { heartbeat } } }) =\u003e {\n        heartbeat.stop()\n\n        return 'Stop heartbeat'\n    })\n    .listen(8080)\n```\n\n## API\nThis plugin export `cron` function using [cronner](https://github.com/hexagon/croner)\n\nFor documentation, `cron` use the same syntax as [cronner](https://github.com/hexagon/croner), so please refers to [cronner documentation](https://github.com/hexagon/croner)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felysiajs%2Felysia-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felysiajs%2Felysia-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felysiajs%2Felysia-cron/lists"}