{"id":13902935,"url":"https://github.com/ssssota/typedotenv","last_synced_at":"2025-03-19T11:31:40.290Z","repository":{"id":65915108,"uuid":"601974100","full_name":"ssssota/typedotenv","owner":"ssssota","description":"dotenv utility for TypeScript","archived":false,"fork":false,"pushed_at":"2025-01-06T10:22:43.000Z","size":251,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T18:03:27.428Z","etag":null,"topics":["cli","code-generation","dotenv","typescript","unplugin","vite","webpack"],"latest_commit_sha":null,"homepage":"https://ssssota.github.io/typedotenv/","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/ssssota.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-15T08:22:13.000Z","updated_at":"2024-12-27T08:48:36.000Z","dependencies_parsed_at":"2024-06-21T03:10:54.910Z","dependency_job_id":"1a004056-e8e7-45c2-8dfc-cb63fd79cfe9","html_url":"https://github.com/ssssota/typedotenv","commit_stats":{"total_commits":58,"total_committers":5,"mean_commits":11.6,"dds":0.4655172413793104,"last_synced_commit":"f61d90a1619dd593d0fdb620fd4c6567696b2591"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Ftypedotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Ftypedotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Ftypedotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Ftypedotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssssota","download_url":"https://codeload.github.com/ssssota/typedotenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989109,"owners_count":20379648,"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":["cli","code-generation","dotenv","typescript","unplugin","vite","webpack"],"created_at":"2024-08-06T22:01:30.536Z","updated_at":"2025-03-19T11:31:35.280Z","avatar_url":"https://github.com/ssssota.png","language":"TypeScript","funding_links":[],"categories":["cli"],"sub_categories":[],"readme":"# typedotenv\n\ndotenv utility for TypeScript\n\n## Example\n\n_.env_\n\n```ini\nAPI_KEY=qwertyuiop\nNEXT_PUBLIC_API_BASE_URL=http://example.com/\n```\n\n_env.ts_ (generated TypeScript code)\n\n```ts\n/* Auto generated by typedotenv */\nif (typeof process.env.API_KEY !== 'string') throw new Error('API_KEY is not defined in .env');\nexport const API_KEY = process.env.API_KEY;\nif (typeof process.env.NEXT_PUBLIC_API_BASE_URL !== 'string') throw new Error('NEXT_PUBLIC_API_BASE_URL is not defined in .env');\nexport const NEXT_PUBLIC_API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL;\n```\n\n`disableRuntimeTypeCheck:true` \u0026 `enableTypeAssetion:true` \u0026 `envObject:'import.meta.env'`\n\n```ts\n/* Auto generated by typedotenv */\nexport const API_KEY = import.meta.env.API_KEY as string;\nexport const NEXT_PUBLIC_API_BASE_URL = import.meta.env.NEXT_PUBLIC_API_BASE_URL as string;\n```\n\n## Usage\n\n- [CLI](./packages/cli/README.md)\n- [unplugin](./packages/unplugin/README.md) (e.g. Vite, Webpack, ...)\n- [API](./packages/core/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssota%2Ftypedotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssssota%2Ftypedotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssota%2Ftypedotenv/lists"}