Skip to content

Instantly share code, notes, and snippets.

@0xYao
0xYao / validate-env.ts
Created September 23, 2022 04:14
Environment variables validation script
import fs from 'fs';
import dotenv from 'dotenv';
type ValidationErorr = {
property: string;
message: string;
};
class ValidationError extends Error {}