{"id":24455553,"url":"https://github.com/nixjs/ts-enumify","last_synced_at":"2025-03-14T07:40:32.352Z","repository":{"id":238420439,"uuid":"796531853","full_name":"nixjs/ts-enumify","owner":"nixjs","description":"Generates a enum (like an object) with keys and values based on the elements of an array.","archived":false,"fork":false,"pushed_at":"2024-05-06T07:38:01.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T17:51:14.432Z","etag":null,"topics":["array-to-enum","enum","enum-generator","enumify"],"latest_commit_sha":null,"homepage":"","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/nixjs.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}},"created_at":"2024-05-06T06:11:48.000Z","updated_at":"2024-05-06T07:38:04.000Z","dependencies_parsed_at":"2024-05-06T06:25:18.854Z","dependency_job_id":"ef9f255d-3ff9-4daa-bbb3-5d7a6ec339ac","html_url":"https://github.com/nixjs/ts-enumify","commit_stats":null,"previous_names":["nixjs/ts-enumify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fts-enumify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fts-enumify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fts-enumify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fts-enumify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixjs","download_url":"https://codeload.github.com/nixjs/ts-enumify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544668,"owners_count":20308168,"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":["array-to-enum","enum","enum-generator","enumify"],"created_at":"2025-01-21T02:13:43.908Z","updated_at":"2025-03-14T07:40:32.329Z","avatar_url":"https://github.com/nixjs.png","language":"TypeScript","readme":"# @nixjs23n6/ts-enumify\n\nGenerates a enum (like an object) with keys and values based on the elements of an array.\n\n## Install\n\n```shell [npm]\nnpm install @nixjs23n6/ts-enumify\n```\n\n```shell [pnpm]\npnpm add @nixjs23n6/ts-enumify\n```\n\n```shell [yarn]\nyarn add @nixjs23n6/ts-enumify\n```\n\n```shell [bun]\nbun add -@nixjs23n6/ts-enumify\n```\n\n## Example\n\n```typescript\nimport { Enumify } from '@nixjs23n6/ts-enumify'\n\nconst EnumKey = Enumify.generate(['ENUM1', 'ENUM2', 'ENUM3'] as const) // const EnumKey: Readonly\u003cEnumify.ToObj\u003c\"ENUM1\" | \"ENUM2\" | \"ENUM3\"\u003e\u003e\ntype EnumType = keyof typeof EnumKey // type EnumType = \"ENUM1\" | \"ENUM2\" | \"ENUM3\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fts-enumify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixjs%2Fts-enumify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fts-enumify/lists"}