znv
Version:
Parse your environment with Zod schemas
12 lines • 537 B
JavaScript
export { z } from "zod";
export * from "./parse-env.js";
export * from "./preprocessors.js";
export * from "./extra-schemas.js";
import { parseEnvImpl } from "./parse-env.js";
/**
* Parses the passed environment object using the provided map of Zod schemas
* and returns the immutably-typed, parsed environment. Compatible with
* serverless and browser environments.
*/
export const parseEnv = (env, schemas, reporterOrTokenFormatters = {}) => parseEnvImpl(env, schemas, reporterOrTokenFormatters);
//# sourceMappingURL=compat.js.map