UNPKG

@imduchuyyy/crypt-env

Version:

Secure environment manager with profile-based encrypted storage

9 lines (7 loc) 315 B
import { loadOrCreateProfile, saveProfile } from '../shared'; export async function deleteVariable(profile: string, key: string) { const { env, password } = await loadOrCreateProfile(profile); delete env[key]; saveProfile(profile, env, password); console.log(`Deleted ${key} from profile "${profile}"`); }