envshape mark

@theworker02/envshape · JSR · 1.2.0

envshape

Typed environment validation for Node applications, dotenv files, deployment preflight checks, and automation.

1.2.0JSRMITNode.js ≥ 18

Overview

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.

Structured API

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.

CLI from source

git clone https://github.com/theworker02/envshape.git
cd envshape
PORT=8080 NAME=api node src/cli.js schema.json