initgen
Version:
A beautiful, interactive CLI tool to scaffold modern web and backend projects with React, Next.js, Vue, Node.js, Python Flask/Django, shadcn/ui and more. Zero configuration, production-ready projects in seconds with Tailwind CSS v4!
13 lines (10 loc) • 322 B
JavaScript
import { exec } from 'child_process';
import { promisify } from 'util';
const execPromise = promisify(exec);
export async function runCommand(command, cwd) {
return execPromise(command, {
cwd,
maxBuffer: 1024 * 1024 * 50, // Increase buffer to 50MB
timeout: 300000, // 5 minute timeout
});
}