{"id":13682292,"url":"https://github.com/agenda/human-interval","last_synced_at":"2025-05-14T23:06:54.740Z","repository":{"id":11418161,"uuid":"13869098","full_name":"agenda/human-interval","owner":"agenda","description":"Human readable time distances for javascript","archived":false,"fork":false,"pushed_at":"2024-01-24T20:01:45.000Z","size":59,"stargazers_count":463,"open_issues_count":7,"forks_count":14,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-15T00:44:29.372Z","etag":null,"topics":["date","interval","javascript","nodejs","parse","time"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agenda.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2013-10-25T18:43:19.000Z","updated_at":"2025-03-17T13:29:25.000Z","dependencies_parsed_at":"2024-06-18T12:34:24.691Z","dependency_job_id":"b4cf981a-a78e-4cda-ae22-2f39295a5f51","html_url":"https://github.com/agenda/human-interval","commit_stats":{"total_commits":57,"total_committers":9,"mean_commits":6.333333333333333,"dds":0.5614035087719298,"last_synced_commit":"3df37bcb3c09118b533c16ed1c5ce01922c1d577"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agenda%2Fhuman-interval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agenda%2Fhuman-interval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agenda%2Fhuman-interval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agenda%2Fhuman-interval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agenda","download_url":"https://codeload.github.com/agenda/human-interval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243362,"owners_count":22038046,"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":["date","interval","javascript","nodejs","parse","time"],"created_at":"2024-08-02T13:01:43.563Z","updated_at":"2025-05-14T23:06:49.709Z","avatar_url":"https://github.com/agenda.png","language":"JavaScript","readme":"# Human Interval\nHuman-readable interval parser for Javascript.\n\nConverts words written in English to numbers by using [node-numbered](https://github.com/blakeembrey/node-numbered).\n\nOriginally inspired by [matthewmueller/date](http://github.com/matthewmueller/date).\n\n## Uses\n\nHuman Interval is used by job scheduling libraries such as [Agenda](https://github.com/Agenda/agenda#readme) and [Bree](https://jobscheduler.net). They are a job schedulers for Node.js with cron expression syntax, human-friendly times, Dates, and more!\n\n## Example usage\n\n```js\nconst humanInterval = require('human-interval');\n\nsetTimeout(() =\u003e {\n  // Do something!\n}, humanInterval('three minutes'));\n```\n\n## More sophisticated examples\n\nHuman Interval understands all of the following examples:\n\n```js\nhumanInterval('minute');\nhumanInterval('one minute');\nhumanInterval('1.5 minutes');\nhumanInterval('3 days and 4 hours');\nhumanInterval('3 days, 4 hours and 36 seconds');\nhumanInterval('4 months, 3 days, 5 hours and forty-five seconds');\n```\n\n## The full list\n\n### Units\n\nSupports the following units in the plural and singular forms:\n\n- `seconds`\n- `minutes`\n- `hours`\n- `days`\n- `weeks`\n- `months` — assumes 30 days\n- `years` — assumes 365 days\n\n### Wordy numbers\n\nSupports numbers being written out in English words.\n\n```js\nhumanInterval('five minutes');\n```\n\n### Hyphenated numbers\n\nSupports hyphenated numbers.\n\n```js\nhumanInterval('twenty-five seconds');\n```\n\n### Negative numbers\n\nSupports negative numbers if the time starts with a `-` symbol immediately followed by a number.\n\n```js\nhumanInterval('-2 minutes');\n```\n\n# License\n[The MIT License](LICENSE.md)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagenda%2Fhuman-interval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagenda%2Fhuman-interval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagenda%2Fhuman-interval/lists"}