{"id":24874635,"url":"https://github.com/dirheimerb/tzts","last_synced_at":"2025-10-11T16:20:23.356Z","repository":{"id":233631569,"uuid":"787614326","full_name":"dirheimerb/tzts","owner":"dirheimerb","description":"The Timezone TypeScript Library (tzts) is a comprehensive toolkit designed to assist developers in handling timezones in their applications. ","archived":false,"fork":false,"pushed_at":"2024-04-17T06:12:32.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T07:28:56.669Z","etag":null,"topics":["picklist","timezone","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"https://dirheimerb.github.io/tzts/","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/dirheimerb.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-16T21:22:51.000Z","updated_at":"2024-04-17T06:14:00.000Z","dependencies_parsed_at":"2024-04-17T00:37:53.161Z","dependency_job_id":"14bbbf28-45ea-4b10-8578-49d8751d0b7d","html_url":"https://github.com/dirheimerb/tzts","commit_stats":null,"previous_names":["dirheimerb/tzts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftzts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftzts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftzts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftzts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirheimerb","download_url":"https://codeload.github.com/dirheimerb/tzts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767360,"owners_count":20668826,"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":["picklist","timezone","typescript","typescript-library"],"created_at":"2025-02-01T07:28:04.094Z","updated_at":"2025-10-11T16:20:18.335Z","avatar_url":"https://github.com/dirheimerb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/dirheimerb/tzts.svg?branch=main)](https://travis-ci.com/dirheimerb/tzts)\n[![Coverage Status](https://coveralls.io/repos/github/dirheimerb/tzts/badge.svg?branch=main)](https://coveralls.io/github/dirheimerb/tzts?branch=main)\n[![npm version](https://badge.fury.io/js/tzts.svg)](https://badge.fury.io/js/tzts)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n# Timezone TypeScript Library (tzts)\n\n## Description\nThe Timezone TypeScript Library (`tzts`) is a comprehensive toolkit designed to assist developers in handling timezones in their applications. This library offers a robust selection of functions, utilities, and types for managing timezones, making it easier to handle the complexities associated with global time conversions.\n\n## Version\n0.0.1\n\n### Installation\n\n```bash\nnpm install\n```\n\n### Build\n\n```bash\nnpm run build\n```\n\n## Key Features\n- **Comprehensive Timezone Data**: Provides a rich dataset of timezones, including UTC offsets, abbreviations, and descriptive names.\n- **Type Safety**: Utilizes TypeScript for enhanced code reliability and developer experience.\n- **Modular Design**: Easy integration with modern JavaScript and TypeScript projects.\n\n## Usage\nTo use the timezone data in your project, import the desired components as follows:\n```typescript\nimport { timezone2DimensionArray, timezone } from 'tzts';\n\nconsole.log(timezone2DimensionArray);\nconsole.log(timezone);\n```\n\n### Example\nHere's a basic example demonstrating how to retrieve the display name and abbreviation of a timezone:\n```typescript\nimport { timezone } from 'tzts';\n\nconst tzInfo = timezone.find(tz =\u003e tz.value === 'Eastern Standard Time');\nconsole.log(tzInfo?.text); // Outputs: (UTC-05:00) Eastern Time (US \u0026 Canada)\nconsole.log(tzInfo?.abbr); // Outputs: EST\n```\n\n## Building the Project\nTo build the library for production, use the following npm script:\n```bash\nnpm run build\n```\n\n## Testing\nRun tests using Jest by executing:\n```bash\nnpm test\n```\n\n## Formatting and Linting\nEnsure your code adheres to the configured styles and guidelines:\n```bash\nnpm run format\nnpm run lint\n```\n\n## Documentation\nGenerate documentation for the project using TypeDoc:\n```bash\nnpm run docs\n```\n\n## API Reference\nThe `tzts` library provides the following functions and types:\n\n`Timezone` - Object representing a timezone\n\n`TimezonePicklist` - Picklist of all the timezones\n\n`TimezoneTwoDimensionArray` - Array of TimezonePicklist\n\n`TimezoneEnum` - Enum of all the timezones\n\n`TimezoneKeys` - A list of all the keys in the Timezone object\n\n`TimezoneValue` - A list of all the values in the Timezone object\n\n`TimezoneArray` - Array of Timezone\n\n`TimezonePicklistArray` - Array of TimezonePicklist\n\n`TimezoneEnumArray` - Array of TimezoneEnum\n\n## Contributing\nContributions to the `tzts` library are welcome. Please ensure to follow the code of conduct and submit pull requests for review.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\nFor support or queries, reach out to the maintainer Bradley Dirheimer at [b.dirheimer@gmail.com](mailto:b.dirheimer@gmail.com).\n\n## Links\n- [GitHub Repository](https://github.com/dirheimerb/tzts)\n- [Project Homepage](https://github.com/dirheimerb/tzts#readme)\n- [NPM Package](https://www.npmjs.com/package/tzts)\n- [TypeDoc Documentation](https://dirheimerb.github.io/tzts/)\n- [TypeDoc README](https://dirheimerb.github.io/tzts/README.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Ftzts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirheimerb%2Ftzts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Ftzts/lists"}