{"id":18067255,"url":"https://github.com/eser/temporal-parse","last_synced_at":"2025-04-11T21:14:43.191Z","repository":{"id":58830432,"uuid":"533294997","full_name":"eser/temporal-parse","owner":"eser","description":"parses human-readable strings for JavaScript's Temporal API","archived":false,"fork":false,"pushed_at":"2022-09-24T22:37:55.000Z","size":67,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:14:37.909Z","etag":null,"topics":["acikkaynak","api","date","datetime","human-readable","javascript","javascript-library","parse","parser","temporal"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":["eserozvataf"],"patreon":"eserozvataf","open_collective":"eser"}},"created_at":"2022-09-06T11:33:18.000Z","updated_at":"2025-03-03T12:21:32.000Z","dependencies_parsed_at":"2023-01-18T21:46:01.690Z","dependency_job_id":null,"html_url":"https://github.com/eser/temporal-parse","commit_stats":null,"previous_names":["eserozvataf/temporal-parse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Ftemporal-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Ftemporal-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Ftemporal-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Ftemporal-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eser","download_url":"https://codeload.github.com/eser/temporal-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480427,"owners_count":21110937,"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":["acikkaynak","api","date","datetime","human-readable","javascript","javascript-library","parse","parser","temporal"],"created_at":"2024-10-31T07:08:21.231Z","updated_at":"2025-04-11T21:14:43.169Z","avatar_url":"https://github.com/eser.png","language":"TypeScript","funding_links":["https://github.com/sponsors/eserozvataf","https://patreon.com/eserozvataf","https://opencollective.com/eser"],"categories":[],"sub_categories":[],"readme":"# 🕑 [temporal-parse](https://github.com/eserozvataf/temporal-parse)\n\n[![npm version][npm-image]][npm-url]\n[![npm download][npm-download-image]][npm-url]\n[![license][license-image]][license-url]\n\n\n## What is the temporal-parse?\n\n`Temporal` is the next generation of JavaScript's standard Date API. It's currently proposed to TC39 (see: https://github.com/tc39/proposal-temporal) and in Stage 3.\n\nHowever Temporal brings many features, there'll be no \"human-readable string format parsing\". (see: https://tc39.es/proposal-temporal/docs/strings.html)\n\nThis project aims to parse human-readable strings for Temporal, and generate proper inputs for Temporal's `Temporal.xxxx.from()` functions.\n\n\n## Sample Usage\n\n```js\nimport \"npm:temporal-parse/polyfill\";\nimport { parseDate, toDate, toTemporal } from \"npm:temporal-parse\";\n\nconst parsedDate = parseDate(\"07/12/1995\", \"en-GB\"); // { year: 1995, month: 12, day: 7 }\n\n// new temporal Date API\nconst temporal = toTemporal(parsedDate);\nconsole.log(temporal.toString()); // =\u003e 1995-12-07\n\n// old Date API\nconst date = toDate(parsedDate);\nconsole.log(date.toString()); // =\u003e 1995-12-07T00:00:00\n```\n\n\n## License\n\nApache 2.0, for further details, please see [LICENSE](LICENSE) file\n\n\n## Contributing\n\nSee [contributors.md](contributors.md)\n\nIt is publicly open for any contribution. Bugfixes, new features and extra\nmodules are welcome.\n\n- To contribute to code: Fork the repo, push your changes to your fork, and\n  submit a pull request.\n- To report a bug: If something does not work, please report it using\n  [GitHub Issues](https://github.com/eserozvataf/temporal-parse/issues).\n\n\n## To Support\n\n[Visit my GitHub Sponsors profile at github.com/sponsors/eserozvataf](https://github.com/sponsors/eserozvataf)\n\n[npm-image]: https://img.shields.io/npm/v/temporal-parse.svg?style=flat-square\n[npm-download-image]: https://img.shields.io/npm/dt/temporal-parse.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/temporal-parse\n[license-image]: https://img.shields.io/npm/l/temporal-parse.svg?style=flat-square\n[license-url]: https://github.com/eserozvataf/temporal-parse/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Ftemporal-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feser%2Ftemporal-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Ftemporal-parse/lists"}