1/* 2 * This file is part of CoCalc: Copyright © 2020 Sagemath, Inc. 3 * License: MS-RSL – see LICENSE.md for details 4 */ 5 6import { exec as cp_exec, spawn as cp_spawn } from "node:child_process"; 7import { promisify } from "node:util"; 8export const exec = promisify(cp_exec); 9export const spawn = promisify(cp_spawn); 10 11