UNPKG

@srob/files

Version:

Helpers to programmatically edit text files, save, diff, folder-diff, etc.

10 lines (9 loc) 227 B
/** * Executes a shell command and returns the result * @param {string} cmd * @returns {Promise<{stdout: string, stderr: string}>} */ export function exec(cmd: string): Promise<{ stdout: string; stderr: string; }>;