{"id":50986598,"url":"https://github.com/boxpositron/vre","last_synced_at":"2026-06-19T19:34:22.983Z","repository":{"id":87750163,"uuid":"559539046","full_name":"boxpositron/vre","owner":"boxpositron","description":"Check if environmental variables exist and verify if their types","archived":false,"fork":false,"pushed_at":"2022-10-30T17:03:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T09:46:22.780Z","etag":null,"topics":["dotenv","nodejs","package","runtime","typescript","validation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@boxpositron/vre","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/boxpositron.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":"2022-10-30T12:42:21.000Z","updated_at":"2024-06-19T21:41:23.000Z","dependencies_parsed_at":"2023-03-13T18:39:06.127Z","dependency_job_id":null,"html_url":"https://github.com/boxpositron/vre","commit_stats":null,"previous_names":["boxpositron/vre"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boxpositron/vre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxpositron%2Fvre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxpositron%2Fvre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxpositron%2Fvre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxpositron%2Fvre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxpositron","download_url":"https://codeload.github.com/boxpositron/vre/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxpositron%2Fvre/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34546198,"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-19T02:00:06.005Z","response_time":61,"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":["dotenv","nodejs","package","runtime","typescript","validation"],"created_at":"2026-06-19T19:34:22.038Z","updated_at":"2026-06-19T19:34:22.979Z","avatar_url":"https://github.com/boxpositron.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validate Runtime\n\nCheck if environmental variables exist and verify if their types\n\n## installation\n\n```shell\npnpm install @boxpositron/vre\n\nor\n\nnpm install @boxpositron/vre\n\nor\n\nyarn add @boxpositron/vre\n```\n\n## Usage\n\nCall the validate package the moment your application starts up and has loaded its environment. If there are missing environmental variables, the application will exit whilst displaying the missing parameters.\n\n### Typescript\n\n```ts\nimport validate, { RequiredEnvironmentTypes } from \"validate-runtime-environment\";\n\n// Ensure you saturate your environment before calling validate\n// You can use the dotenv package\n// import dotenv from \"dotenv\";\n// dotenv.config()\n\nvalidate([\n  {\n    name: \"MONGODB_URI\",\n    type: RequiredEnvironmentTypes.String, // \"string\"\n  },\n  {\n    name: \"PORT\",\n    type: RequiredEnvironmentTypes.Number, // \"number\"\n  }\n]);\n\n```js\n### Javascript\n\n```ts\nconst validate = require(\"@boxpositron/vre\").default;\n\n// Ensure you saturate your environment before calling validate\n// You can use the dotenv package\n// import dotenv from \"dotenv\";\n// dotenv.config()\n\nvalidate([\n  {\n    name: \"MONGODB_URI\",\n    type: \"string\",\n  },\n  {\n    name: \"PORT\",\n    type: \"number\",\n  }\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxpositron%2Fvre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxpositron%2Fvre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxpositron%2Fvre/lists"}