@theworker02/envshape · JSR · 1.2.0
Typed environment validation for Node applications, dotenv files, deployment preflight checks, and automation.
envshape catches missing, mistyped, and unexpected environment variables before an application starts. The 1.2.0 API adds explicit package metadata, primitive-type introspection, reusable value validation, and richer TypeScript documentation.
Canonical package: @theworker02/envshape
import { checkEnv, validateValue, ENV_TYPES, PACKAGE } from "@theworker02/envshape";
const result = checkEnv({ PORT: "number" }, { PORT: "8080" });
console.log(result.ok, validateValue("bool", "true"), ENV_TYPES, PACKAGE.version);Generated symbol documentation is available directly on JSR.
git clone https://github.com/theworker02/envshape.git
cd envshape
PORT=8080 NAME=api node src/cli.js schema.json