UNPKG

backend-smith

Version:

A CLI tool for automating backend component generation in Express.js, including modules, schemas, routes, services, and more.

12 lines (11 loc) 284 B
import { exec } from 'child_process'; export const runCommandHelper = (command: string) => { return new Promise<boolean>((res, rej) => { exec(command, (error) => { if (error) { rej(error) } res(true) }) }) }