{"id":15801325,"url":"https://github.com/ovflowd/simple-cron-parser","last_synced_at":"2025-03-31T21:34:28.411Z","repository":{"id":111311240,"uuid":"456470577","full_name":"ovflowd/simple-cron-parser","owner":"ovflowd","description":"A simple CRON parser made in Node.js which supports a hh:mm format","archived":false,"fork":false,"pushed_at":"2022-02-07T11:20:10.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T01:21:52.540Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovflowd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T11:06:53.000Z","updated_at":"2023-03-04T03:30:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"595369af-c949-4851-866b-2a8c76a0872e","html_url":"https://github.com/ovflowd/simple-cron-parser","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/ovflowd%2Fsimple-cron-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovflowd%2Fsimple-cron-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovflowd%2Fsimple-cron-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovflowd%2Fsimple-cron-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovflowd","download_url":"https://codeload.github.com/ovflowd/simple-cron-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246544527,"owners_count":20794520,"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-10-05T01:21:46.229Z","updated_at":"2025-03-31T21:34:28.386Z","avatar_url":"https://github.com/ovflowd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple CRON Parser\r\n\r\nThis library is a simple CRON schema parser which only supports a hh:mm (Hour and Minutes) format and gives an output in the form of stdOut/console.log of the result of the parsing.\r\n\r\n### Libraries Used\r\n\r\n- **[Temporal API (Alpha/Polyfill)](https://tc39.es/proposal-temporal/docs/)**\r\n  - This library is used to ensure that the Dates used do not follow any kind of specific TimeZone or Locale.\r\n- **[Zod](https://github.com/colinhacks/zod)**\r\n  - This library is used to ensure that both the response from the HubSpot API and the result that we manually create and send abides the Specification by Parsing and validating it\r\n- **[Microbundle](https://github.com/developit/microbundle)**\r\n  - This is a library that bundles and distributes our Application in UMD, CommonJS, AMD and Module (ES2020) versions.\r\n- **TypeScript**\r\n  - We use TypeScript as the programming language for this Exercise\r\n\r\n### The Approach of this Implementation\r\n\r\nThis approach focus on an elegant and future-proof codebase without extra complications.\r\n\r\nHere we rely on Intl.RelativeTimeFormat for human-readable relative times and we use the Temporal API for manipulating DateTimes.\r\n\r\n### Installation\r\n\r\nThe only pre-requisite of this Application is having the [Yarn Package Manager](https://yarnpkg.com/) and Node.js installed.\r\n\r\nThe package lock was generated targeting Node.js v16 as being the current LTS version. Node.js v14 might work.\r\n\r\nTo install the dependencies simply run `yarn`.\r\n\r\n### Bundling \u0026 Running\r\n\r\nIn order to build this application, simply run `yarn build`.\r\n\r\nAfter building the application you might want to move to run something like\r\n\r\n```bash\r\ncat input.txt | node dist/index.js 16:10\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovflowd%2Fsimple-cron-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovflowd%2Fsimple-cron-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovflowd%2Fsimple-cron-parser/lists"}