{"id":24063996,"url":"https://github.com/qeepsake/ts-string-as-enum","last_synced_at":"2025-08-24T14:41:10.397Z","repository":{"id":60780712,"uuid":"545486931","full_name":"Qeepsake/ts-string-as-enum","owner":"Qeepsake","description":"Convert a string to an enum type with TypeScript ⚡️","archived":false,"fork":false,"pushed_at":"2022-10-04T13:40:08.000Z","size":342,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-11T07:44:27.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qeepsake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-04T13:07:49.000Z","updated_at":"2024-01-21T00:36:40.000Z","dependencies_parsed_at":"2022-10-04T19:00:05.652Z","dependency_job_id":null,"html_url":"https://github.com/Qeepsake/ts-string-as-enum","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Qeepsake/ts-string-as-enum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Fts-string-as-enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Fts-string-as-enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Fts-string-as-enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Fts-string-as-enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qeepsake","download_url":"https://codeload.github.com/Qeepsake/ts-string-as-enum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Fts-string-as-enum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271888722,"owners_count":24839146,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-09T10:06:05.310Z","updated_at":"2025-08-24T14:41:10.332Z","avatar_url":"https://github.com/Qeepsake.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert String to Enum with TypeScript\n\nTiny (zero dependencies) utility to Convert string to enum type with TypeScript ⚡️\n## Install\n\n```bash\nnpm install --save @qeepsake/ts-string-as-enum\n```\n\n## Usage\n\n```ts\nexport declare enum Colors {\n    /** JSDoc */\n    Blue = \"Blue\",\n    /** JSDoc */\n    Red = \"Red\",\n    /** JSDoc */\n    Green = \"Green\",\n}\n\ntsStringAsEnum(Colors, 'blue'); // -\u003e Colors.Blue\n```\n\n## License\n\nMIT © [lukebrandonfarrell](https://github.com/lukebrandonfarrell)\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.lukebrandonfarrell.com\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/18139277?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLuke Brandon Farrell\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#projectManagement-lukebrandonfarrell\" title=\"Project Management\"\u003e📆\u003c/a\u003e \u003ca href=\"https://github.com/qeepsake/rails-guid/commits?author=lukebrandonfarrell\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Fts-string-as-enum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeepsake%2Fts-string-as-enum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Fts-string-as-enum/lists"}