{"id":19209027,"url":"https://github.com/harvesthq/hour-parser","last_synced_at":"2025-05-12T18:54:24.729Z","repository":{"id":42730829,"uuid":"90991511","full_name":"harvesthq/hour-parser","owner":"harvesthq","description":"Parse user-provided timestamp input and get nice output","archived":false,"fork":false,"pushed_at":"2024-06-18T11:18:05.000Z","size":735,"stargazers_count":7,"open_issues_count":2,"forks_count":4,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-04-20T15:44:37.239Z","etag":null,"topics":["parser","parsing","time","userinput"],"latest_commit_sha":null,"homepage":"","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/harvesthq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2017-05-11T14:56:12.000Z","updated_at":"2024-06-09T02:21:42.000Z","dependencies_parsed_at":"2024-02-12T19:53:31.707Z","dependency_job_id":"890fedc1-900f-4d6a-8929-f457975fd788","html_url":"https://github.com/harvesthq/hour-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harvesthq%2Fhour-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harvesthq%2Fhour-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harvesthq%2Fhour-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harvesthq%2Fhour-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harvesthq","download_url":"https://codeload.github.com/harvesthq/hour-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253804322,"owners_count":21967046,"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":["parser","parsing","time","userinput"],"created_at":"2024-11-09T13:28:51.531Z","updated_at":"2025-05-12T18:54:24.704Z","avatar_url":"https://github.com/harvesthq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Harvest Hour Parser\n\nParse user-provided durations or timestamps (in decimal or hh:mm format) and get nice output in your JavaScript or TypeScript project.\n\n## Installation\n\nIn your project's directory, run:\n\n```\nnpm install git+https://github.com/harvesthq/hour-parser.git#v2.1.0\n```\n\n## Usage\n\n```javascript\nimport { toDecimal, toHHMM } from 'hour-parser'\n\ntoHHMM('0.5') // 0:30\ntoHHMM('0:5') // 0:05\ntoHHMM('1.25') // 1:15\ntoHHMM('1,25') // 1:15\ntoHHMM('1.5+3') // 4:30\ntoHHMM('1:45+3') // 4:45\n\ntoDecimal('0.5') // 0.50\ntoDecimal('0:5') // 0.08\ntoDecimal('1.25') // 1.25\ntoDecimal('1,25') // 1.25\ntoDecimal('1.5+3') // 4.50\ntoDecimal('1:45+3') // 4.75\n```\n\n## Development\n\nThis project uses Typescript. Do not modify `index.js` or `index.d.ts` manually. Make all changes to `src/index.ts`.\n\nRun `npm test` to make sure nothing broke. Run `npm run build` to export a new build.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharvesthq%2Fhour-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharvesthq%2Fhour-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharvesthq%2Fhour-parser/lists"}