{"id":41952339,"url":"https://github.com/mgks/env-must-exist","last_synced_at":"2026-01-25T21:35:01.656Z","repository":{"id":330824793,"uuid":"1124072257","full_name":"mgks/env-must-exist","owner":"mgks","description":"CLI to assert that environment variables are present. Fails fast in CI/CD if missing.","archived":false,"fork":false,"pushed_at":"2025-12-30T08:25:40.000Z","size":138,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-30T18:48:37.218Z","etag":null,"topics":["automation","ci","cli","failsafe","nodejs","npm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mgks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"mgks","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-12-28T09:10:29.000Z","updated_at":"2025-12-30T08:25:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mgks/env-must-exist","commit_stats":null,"previous_names":["mgks/env-must-exist"],"tags_count":1,"template":false,"template_full_name":"mgks/nodejs-package-template","purl":"pkg:github/mgks/env-must-exist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fenv-must-exist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fenv-must-exist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fenv-must-exist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fenv-must-exist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgks","download_url":"https://codeload.github.com/mgks/env-must-exist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fenv-must-exist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28759413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T20:56:06.009Z","status":"ssl_error","status_checked_at":"2026-01-25T20:54:48.203Z","response_time":113,"last_error":"SSL_read: 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":["automation","ci","cli","failsafe","nodejs","npm"],"created_at":"2026-01-25T21:35:00.984Z","updated_at":"2026-01-25T21:35:01.647Z","avatar_url":"https://github.com/mgks.png","language":"JavaScript","funding_links":["https://github.com/sponsors/mgks"],"categories":[],"sub_categories":[],"readme":"# env-must-exist\n\n**Assert that environment variables are present. Fail fast in CI.**\n\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/env-must-exist.svg?style=flat-square\u0026color=d25353\" alt=\"npm version\"\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/env-must-exist?style=flat-square\u0026color=38bd24\" alt=\"size\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/env-must-exist.svg?style=flat-square\u0026color=success\u0026color=38bd24\" alt=\"npm downloads\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/mgks/env-must-exist.svg?style=flat-square\u0026color=blue\" alt=\"license\"\u003e\n\u003c/p\u003e\n\nA tiny pre-flight check that stops broken deploys before they happen. It verifies required environment variables like `DATABASE_URL` at deploy time and fails fast with a clear error if anything is missing, instead of letting your app crash later in production in confusing ways.\n\n## Installation\n\n```bash\nnpm install env-must-exist\n```\n\n## Usage\n\n### CLI (Recommended for CI)\n\nAdd this to your build or start script:\n\n```bash\n{\n  \"scripts\": {\n    \"build\": \"env-must-exist DATABASE_URL STRIPE_KEY \u0026\u0026 next build\"\n  }\n}\n```\n\nIf `STRIPE_KEY` is missing, you get:\n\n```bash\n❌ Missing required environment variables:\n   - STRIPE_KEY\n```\n\n### API\n\n```js\nimport { assertEnv } from 'env-must-exist';\n\nassertEnv(['DATABASE_URL', 'API_KEY']);\n```\n\n## License\n\nMIT\n\n\u003e **{ github.com/mgks }**\n\u003e \n\u003e ![Website Badge](https://img.shields.io/badge/Visit-mgks.dev-blue?style=flat\u0026link=https%3A%2F%2Fmgks.dev) ![Sponsor Badge](https://img.shields.io/badge/%20%20Become%20a%20Sponsor%20%20-red?style=flat\u0026logo=github\u0026link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fmgks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgks%2Fenv-must-exist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgks%2Fenv-must-exist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgks%2Fenv-must-exist/lists"}