{"id":19391927,"url":"https://github.com/fwd/cron","last_synced_at":"2025-02-24T21:12:22.551Z","repository":{"id":103797700,"uuid":"290288452","full_name":"fwd/cron","owner":"fwd","description":"A NodeJS wrapper around setInterval for expressive cron like repetitive tasks.","archived":false,"fork":false,"pushed_at":"2021-04-25T18:18:19.000Z","size":10854,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-23T13:17:35.956Z","etag":null,"topics":["api","cron","cronjob","javascript","nodejs","nodejs-wrapper","repetitive-tasks","serverless","setinterval"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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":["fwd"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-25T18:09:00.000Z","updated_at":"2021-04-25T18:18:21.000Z","dependencies_parsed_at":"2023-05-13T21:25:54.693Z","dependency_job_id":null,"html_url":"https://github.com/fwd/cron","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"08739ae66902490d0f48303fe27d1f09f65a7a0d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwd%2Fcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwd%2Fcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwd%2Fcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwd%2Fcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwd","download_url":"https://codeload.github.com/fwd/cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240557485,"owners_count":19820360,"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":["api","cron","cronjob","javascript","nodejs","nodejs-wrapper","repetitive-tasks","serverless","setinterval"],"created_at":"2024-11-10T10:29:44.161Z","updated_at":"2025-02-24T21:12:22.516Z","avatar_url":"https://github.com/fwd.png","language":"JavaScript","readme":"![Cover](https://raw.githubusercontent.com/fwd/cron/master/.github/cover.png)\n\n\u003ch1 align=\"center\"\u003e@fwd/cron 💾\u003c/h1\u003e\n\n\u003e A NodeJS package to simplify runtime CRON jobs. A sexier setInterval, basically.\n\n## Install\n\n```sh\nnpm install fwd/cron\n```\n\n## Usage\n\n```js\n\nconst cron = require('@fwd/cron')\n\ncron(() =\u003e {\n   // runs every 24 hours\n}, 'every 24 hours')\n\ncron(() =\u003e {\n   // runs every 1 month, and immediately once\n}, 'every 1 month', true)\n\n```\n\n## Parameters\n\n```js\n\ncron(function, interval, runImmediately)\n\n````\n\n## Available Intervals\n\n- second(s)\n- minute(s)\n- hour(s)\n- month(s)\n- year(s)\n\nThis package uses [@fwd/time](https://github.com/fwd/time) to parse time intervals. \n\n## 👤 Author\n\n* Github: [@fwd](https://github.com/fwd)\n* Website: [https://forward.miami](https://forward.miami)\n\n## 🤝 Contributing\n\nGive a ⭐️ if this project helped you!\n\nContributions, issues and feature requests are welcome! \u003cbr /\u003eFeel free to check [issues page](https://github.com/fwd/cron/issues).\n\n## 📝 License\n\nMIT License\n\nCopyright © 2021 [Forward Miami](https://forward.miami).\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":["https://github.com/sponsors/fwd"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwd%2Fcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwd%2Fcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwd%2Fcron/lists"}