UNPKG

@interopio/cli

Version:

Interop.io CLI - a command line for creating Interop.io applications

11 lines (10 loc) 305 B
import * as child from "node:child_process"; export const runCommand = (command, options) => new Promise((resolve, reject) => { child.exec(command, options, (error, stdout) => { if (error) { reject(error.message); return; } resolve(stdout); }); });