{"id":17215433,"url":"https://github.com/pixtron/node-timer","last_synced_at":"2026-01-24T04:36:40.843Z","repository":{"id":35207043,"uuid":"216350473","full_name":"pixtron/node-timer","owner":"pixtron","description":"EventEmitter emitting `tick` based on a given cron expression","archived":false,"fork":false,"pushed_at":"2023-08-04T23:33:20.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-16T03:24:23.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pixtron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-20T11:24:12.000Z","updated_at":"2022-04-28T13:25:44.000Z","dependencies_parsed_at":"2023-01-15T16:11:44.154Z","dependency_job_id":null,"html_url":"https://github.com/pixtron/node-timer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixtron%2Fnode-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixtron%2Fnode-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixtron%2Fnode-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixtron%2Fnode-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixtron","download_url":"https://codeload.github.com/pixtron/node-timer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227884636,"owners_count":17834918,"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-15T03:24:24.509Z","updated_at":"2026-01-24T04:36:40.792Z","avatar_url":"https://github.com/pixtron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @pxtrn/timer\n\nEmits `tick` based on a cron expression.\nSee [`cron-parser`](https://www.npmjs.com/package/cron-parser#supported-format)\nfor supported formats.\n\n## Installation\n\n`npm install --save @pxtrn/timer`\n\n\n## Usage\n\n```js\nconst Timer = require('@pxtrn/timer');\n\nconst timer = new Timer('00 * * * * *', {delay: 200});\ntimer.on('tick', () =\u003e {\n  console.log('Tick', new Date())\n});\n```\n\n### Class: `Timer`\n\n- `expression` {String} Cron expression. See `[cron-parser](https://www.npmjs.com/package/cron-parser#supported-format)`\n- `options` {Object} Optional\n  - `delay`: {Integer} Delay in milliseconds. Default 0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixtron%2Fnode-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixtron%2Fnode-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixtron%2Fnode-timer/lists"}