UNPKG

@imduchuyyy/crypt-env

Version:

Secure environment manager with profile-based encrypted storage

7 lines (5 loc) 226 B
import { loadOrCreateProfile } from '../shared'; export async function getVariable(profile: string, key: string) { const { env } = await loadOrCreateProfile(profile); console.log(`${key}=${env[key] || '(undefined)'}`); }