{"id":15607906,"url":"https://github.com/tanishqmanuja/consistent-env","last_synced_at":"2026-04-10T23:47:36.587Z","repository":{"id":234903658,"uuid":"789723011","full_name":"tanishqmanuja/consistent-env","owner":"tanishqmanuja","description":"Consistent environment variables across runtimes.","archived":false,"fork":false,"pushed_at":"2024-04-23T06:27:03.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T08:43:40.915Z","etag":null,"topics":["bun","dotenv","env","node"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@tqman/env","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanishqmanuja.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":"2024-04-21T11:32:33.000Z","updated_at":"2024-04-23T06:27:06.000Z","dependencies_parsed_at":"2024-04-21T12:21:45.613Z","dependency_job_id":"dd88347a-b7f8-438f-9a5c-fb80e322d64a","html_url":"https://github.com/tanishqmanuja/consistent-env","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"2b5ef5f843a7d1882aaf14e31b34997fa1564c93"},"previous_names":["tanishqmanuja/consistent-env"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fconsistent-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fconsistent-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fconsistent-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishqmanuja%2Fconsistent-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanishqmanuja","download_url":"https://codeload.github.com/tanishqmanuja/consistent-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193337,"owners_count":20738473,"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":["bun","dotenv","env","node"],"created_at":"2024-10-03T05:05:06.222Z","updated_at":"2026-04-10T23:47:31.538Z","avatar_url":"https://github.com/tanishqmanuja.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tqman/env\n\nA thin wrapper around [**dotenv**](https://github.com/motdotla/dotenv) for providing consistent experience with loading environment variables across different runtimes.\n\n## 📦 Install\n\nInstall using `npm`\n\n```bash\nnpm install dotenv@latest @tqman/env@latest\n```\n\nInstall using `bun`\n\n```bash\nbun install dotenv@latest @tqman/env@latest\n```\n\n## ⚙️ Loading Strategy\n\nEnvironment variables are loaded in the following order:\n\n- .env\n- .env.{mode} (mode is NODE_ENV lowercased, default is development)\n- .env.local\n\nStrategy is a mix of both [**bun**](https://bun.sh/docs/runtime/env), [**vite**](https://vitejs.dev/guide/env-and-mode).\n\n\u003e [!NOTE]  \n\u003e Difference from Bun's strategy - bun only supports .env.{mode} when mode is production, development or test.\n\u003e Issue: https://github.com/oven-sh/bun/issues/9090\n\n\u003e [!NOTE]  \n\u003e Difference from Vite's strategy - .env.{mode}.local is loaded by default in vite, but not by this library.\n\n## 👨‍💻 Usage\n\nAs a side effect import\n\n```ts\nimport \"@tqman/env/load\";\n```\n\nAs a function call\n\n```ts\nimport { load } from \"@tqman/env\";\n\nload();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishqmanuja%2Fconsistent-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanishqmanuja%2Fconsistent-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishqmanuja%2Fconsistent-env/lists"}