{"id":22820262,"url":"https://github.com/cstrnt/safe-env","last_synced_at":"2026-06-08T16:05:55.144Z","repository":{"id":266520074,"uuid":"870318394","full_name":"cstrnt/safe-env","owner":"cstrnt","description":"Type Safe and Developer Friendly Env vars for Deno","archived":false,"fork":false,"pushed_at":"2024-10-09T21:33:25.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-26T12:45:05.260Z","etag":null,"topics":["deno","env","env-vars","type-safety","typescript","validator"],"latest_commit_sha":null,"homepage":"https://jsr.io/@safe-env/safe-env","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/cstrnt.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-09T20:26:20.000Z","updated_at":"2025-11-03T06:26:15.000Z","dependencies_parsed_at":"2024-12-04T22:52:56.387Z","dependency_job_id":null,"html_url":"https://github.com/cstrnt/safe-env","commit_stats":null,"previous_names":["cstrnt/safe-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cstrnt/safe-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstrnt%2Fsafe-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstrnt%2Fsafe-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstrnt%2Fsafe-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstrnt%2Fsafe-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cstrnt","download_url":"https://codeload.github.com/cstrnt/safe-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstrnt%2Fsafe-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","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":["deno","env","env-vars","type-safety","typescript","validator"],"created_at":"2024-12-12T15:17:40.313Z","updated_at":"2026-06-08T16:05:55.122Z","avatar_url":"https://github.com/cstrnt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno Safe Env\n\nDeno Safe Env is a utility for securely managing environment variables in Deno applications.\n\n## Features\n\n- Securely load environment variables\n- Type-safe access to environment variables\n- Easy integration with Deno projects\n\n## Installation\n\nTo install Deno Safe Env, use the following command:\n\n```sh\ndeno add jsr:@safe-env/safe-env\n```\n\n## Usage\n\nImport the module and use it to load and access environment variables:\n\n```typescript\nimport { number, string, url, boolean } from \"@safe-env/safe-env\";\n\nDeno.env.set(\"URL\", \"http://some.host\");\n\nconst env = safeEnv({\n  PORT: number({ defaultValue: 3000 }),\n  HOST: string({ defaultValue: \"localhost\" }),\n  URL: url({ defaultValue: new URL(\"http://localhost:3000\") }),\n  ENABLE_LOGGING: boolean(),\n});\n\nconsole.log(env.PORT); // 3000\nconsole.log(env.HOST); // localhost\nconsole.log(env.URL.href); // http://some.host/\nconsole.log(env.ENABLE_LOGGING); // false\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcstrnt%2Fsafe-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcstrnt%2Fsafe-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcstrnt%2Fsafe-env/lists"}