UNPKG

@dotenc/cli

Version:

🔐 Secure, encrypted environment variables that live in your codebase

7 lines (6 loc) 228 B
import { existsSync } from "node:fs"; import path from "node:path"; export const environmentExists = (environment) => { const envPath = path.join(process.cwd(), `.env.${environment}.enc`); return existsSync(envPath); };