{"id":28639009,"url":"https://github.com/k-yle/runtime-union","last_synced_at":"2026-01-20T16:45:03.576Z","repository":{"id":296831396,"uuid":"994680792","full_name":"k-yle/runtime-union","owner":"k-yle","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-02T10:20:49.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T02:05:57.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/runtime-union","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/k-yle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T10:13:15.000Z","updated_at":"2025-06-05T11:47:42.000Z","dependencies_parsed_at":"2025-06-02T20:26:01.265Z","dependency_job_id":null,"html_url":"https://github.com/k-yle/runtime-union","commit_stats":null,"previous_names":["k-yle/runtime-union"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-yle/runtime-union","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Fruntime-union","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Fruntime-union/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Fruntime-union/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Fruntime-union/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-yle","download_url":"https://codeload.github.com/k-yle/runtime-union/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Fruntime-union/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268130313,"owners_count":24200967,"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-07-31T02:00:08.723Z","response_time":66,"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-06-12T19:10:17.570Z","updated_at":"2026-01-20T16:45:03.570Z","avatar_url":"https://github.com/k-yle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"quick solution to get the value of a TypeScript string union **at runtime** using the TS compiler API.\n\nDon't use this in production obviously! It's designed for build scripts that want to extract a TS union and do something with it.\n\nthere's probably a more idiomatic way to do this…\n\n# usage\n\n```js\nimport { evaluateStringUnion } from 'runtime-union';\n\nconst output = evaluateStringUnion('./path/to/file.ts', 'MyUnionType', {\n  /* tsconfig */\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-yle%2Fruntime-union","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-yle%2Fruntime-union","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-yle%2Fruntime-union/lists"}