{"id":16534361,"url":"https://github.com/njbrown/fast-time-input","last_synced_at":"2025-03-16T19:31:47.566Z","repository":{"id":34691437,"uuid":"182634415","full_name":"njbrown/fast-time-input","owner":"njbrown","description":"Time input shortcuts","archived":false,"fork":false,"pushed_at":"2024-10-23T16:19:40.000Z","size":207,"stargazers_count":3,"open_issues_count":11,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-23T22:35:20.592Z","etag":null,"topics":["datetime","javascript","js","react","shortcode","shortcut"],"latest_commit_sha":null,"homepage":null,"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/njbrown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-04-22T06:17:55.000Z","updated_at":"2020-04-17T08:51:49.000Z","dependencies_parsed_at":"2023-12-30T01:42:42.835Z","dependency_job_id":"43e57560-8ae6-48c4-95c3-3ecf321b7c81","html_url":"https://github.com/njbrown/fast-time-input","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":"0.43999999999999995","last_synced_commit":"8b715be563a0c38c18df4f63398ccdfb43aaa665"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njbrown%2Ffast-time-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njbrown%2Ffast-time-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njbrown%2Ffast-time-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njbrown%2Ffast-time-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njbrown","download_url":"https://codeload.github.com/njbrown/fast-time-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826780,"owners_count":20354220,"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":["datetime","javascript","js","react","shortcode","shortcut"],"created_at":"2024-10-11T18:23:38.096Z","updated_at":"2025-03-16T19:31:47.216Z","avatar_url":"https://github.com/njbrown.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast Time Input\n\n---\n\n[![npm downlaods](https://img.shields.io/npm/dm/fast-time-input.svg?style=for-the-badge)](https://www.npmjs.com/package/fast-time-input)\n[![npm version](https://img.shields.io/npm/v/fast-time-input.svg?style=for-the-badge)](https://www.npmjs.com/package/fast-time-input)\n![npm type definitions](https://img.shields.io/npm/types/fast-time-input.svg?style=for-the-badge)\n[![Renovate badge](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=for-the-badge)](https://renovatebot.com/)\n\n---\n\nShortcodes for time input\n\n---\n\nSave time inputting dates by writing shortcut values and have them converted to time strings e.g. `130p =\u003e 01:30 PM`. It makes entering large amount of date entries really fast.\n\n### List of features\n\n-   Converts shortcode times to time strings\n-   Displays time in 12 and 24 hours\n-   Specify AM `a` or `am` or PM using `p` or `pm`, defaults to AM e.g. `545p =\u003e 05:45 PM` and `220a =\u003e 2:20a`\n\n### Installation\n\n```shell\n$ npm install --save fast-time-input\n```\n\nor\n\n```shell\n$ yarn add fast-time-input\n```\n\n### Examples Conversions\n\nSingle and double digits\n\n```\n1p =\u003e 1:00 PM\n12p =\u003e 12:00 PM\n13pm =\u003e 1:00 PM\n```\n\nTriple digits\n\n```\n130 =\u003e 1:30\n125 =\u003e 1:25\n```\n\nQuadruple Digits\n\n```\n0530 =\u003e 5:30\n1555 =\u003e 15:55\n```\n\n### Code Demo\n\n```js\nimport { parse } \"fast-time-input\";\nresult = parse(\"130p\");\nconsle.log(result); // =\u003e prints \"01:30 PM\"\n```\n\n### Contributing\n\nIf you find any bugs or issues let me know.\n\n### License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjbrown%2Ffast-time-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjbrown%2Ffast-time-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjbrown%2Ffast-time-input/lists"}