Installation
Global Install
Section titled “Global Install”npm install -g envpkt# orpnpm add -g envpktOnce installed globally, the envpkt command is available everywhere:
envpkt --versionenvpkt --helpLocal Install
Section titled “Local Install”Add envpkt as a dev dependency to your project:
npm install -D envpkt# orpnpm add -D envpktThen run via npx or package scripts:
npx envpkt auditRun Without Installing
Section titled “Run Without Installing”npx envpkt env scannpx envpkt auditThe age CLI (required for sealed packets)
Section titled “The age CLI (required for sealed packets)”envpkt itself needs only Node. But sealing and unsealing encrypted_value packets shells out to
the age CLI — it’s a runtime dependency with no
bundled/JS fallback. Install it if you use sealed packets:
# macOSbrew install age# Debian/Ubuntu (and most CI runners)sudo apt-get update && sudo apt-get install -y ageYou do not need age if you only use plaintext [env.*] defaults or resolve secrets via
fnox. Because those paths resolve without age, a config can appear to work while sealed secrets
silently fail to decrypt — run envpkt doctor to confirm age is detected.
Library Usage
Section titled “Library Usage”envpkt is also a TypeScript library. Import functions directly:
import { boot, loadConfig, computeAudit, scanFleet } from "envpkt"See the Library API reference for full documentation.