Skip to content

Instantly share code, notes, and snippets.

View 0xYao's full-sized avatar
🏠
Working from home

Yao 0xYao

🏠
Working from home
  • Mars
View GitHub Profile
@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 {}