UNPKG

env-sentinel

Version:

Zero-dependency tool that auto-validates .env files against schema.env, with optional fallback and secure warnings.

19 lines (18 loc) 499 B
export type nil = undefined | unknown | null; export type SchemaEntry = { key: string; rule: string; }; export type ParsedRule = { name: string; args: string[]; }; export type CommandName = 'init' | 'check' | undefined; export type ValidationResult = string | true; export type ValidatorFn = (key: string, value: string, args: string[]) => ValidationResult; export type ExpectedArguments = { command?: CommandName; file?: string; schema?: string; force?: boolean; };