UNPKG

validstart

Version:

ValidStart is a powerful and intuitive command-line interface (CLI) tool meticulously crafted to streamline the project setup process.

7 lines (5 loc) 233 B
import fs from "fs-extra"; import path from "path"; export async function generateEnv(projectPath: string, keys: string[] = ["PORT=3000", "API_KEY="]) { await fs.writeFile(path.join(projectPath, ".env"), keys.join("\n")); }