{"id":17607657,"url":"https://github.com/tinchoz49/typebox-env","last_synced_at":"2026-02-27T07:43:20.236Z","repository":{"id":257808618,"uuid":"866556879","full_name":"tinchoz49/typebox-env","owner":"tinchoz49","description":"Validate and Parse your environment variables with TypeBox.","archived":false,"fork":false,"pushed_at":"2025-05-12T17:03:40.000Z","size":198,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T21:23:24.058Z","etag":null,"topics":["environment","environment-variables","parse","typebox","validate"],"latest_commit_sha":null,"homepage":"","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/tinchoz49.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2024-10-02T13:28:41.000Z","updated_at":"2025-06-15T22:28:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"12d2defe-3718-4f1b-b5b6-29504be416ca","html_url":"https://github.com/tinchoz49/typebox-env","commit_stats":null,"previous_names":["tinchoz49/typebox-env"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tinchoz49/typebox-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinchoz49%2Ftypebox-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinchoz49%2Ftypebox-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinchoz49%2Ftypebox-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinchoz49%2Ftypebox-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinchoz49","download_url":"https://codeload.github.com/tinchoz49/typebox-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinchoz49%2Ftypebox-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29887796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T05:38:26.446Z","status":"ssl_error","status_checked_at":"2026-02-27T05:38:25.235Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["environment","environment-variables","parse","typebox","validate"],"created_at":"2024-10-22T16:43:38.977Z","updated_at":"2026-02-27T07:43:20.219Z","avatar_url":"https://github.com/tinchoz49.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typebox-env\n\n\u003e Validate and Parse your environment variables with TypeBox.\n\n![Tests](https://github.com/tinchoz49/typebox-env/actions/workflows/test.yml/badge.svg)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard--ext-05ae89.svg)](https://github.com/tinchoz49/eslint-config-standard-ext)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat)](https://github.com/RichardLitt/standard-readme)\n\n## Install\n\n```bash\n$ npm install typebox-env @sinclair/typebox\n```\n\n## Usage\n\n```ts\nimport { Type } from '@sinclair/typebox'\nimport { JSON, parseEnv, SplitArray } from 'typebox-env'\n\nconst schema = Type.Object({\n  FOO_BAR: SplitArray(Type.String()),\n  BAZ: Type.String(),\n  JSON: JSON(Type.Object({\n    foo: Type.String(),\n    bar: Type.String(),\n  })),\n  DEEP: Type.Object({\n    NESTED: Type.Object({\n      FOO: Type.String(),\n    }),\n    BAR: Type.String(),\n  }),\n})\n\nconst env = {\n  FOO_BAR: 'a,b,c',\n  BAZ: 'qux',\n  JSON: '{\"foo\":\"bar\",\"bar\":\"baz\"}',\n  DEEP_NESTED_FOO: 'qux',\n  DEEP_BAR: 'baz',\n}\n\nconst result = parseEnv(schema, env)\n\nconsole.log(result)\n/*\n{\n  FOO_BAR: ['a', 'b', 'c'],\n  BAZ: 'qux',\n  JSON: {\n    foo: 'bar',\n    bar: 'baz',\n  },\n  DEEP: {\n    NESTED: {\n      FOO: 'qux',\n    },\n    BAR: 'baz',\n  },\n}\n*/\n```\n\n## Issues\n\n:bug: If you found an issue we encourage you to report it on [github](https://github.com/tinchoz49/typebox-env/issues). Please specify your OS and the actions to reproduce it.\n\n## Contributing\n\n:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this [guideline](https://github.com/tinchoz49/typebox-env/blob/main/CONTRIBUTING.md).\n\n## License\n\nMIT © 2024 Martin Acosta\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinchoz49%2Ftypebox-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinchoz49%2Ftypebox-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinchoz49%2Ftypebox-env/lists"}