UNPKG

@package-pal/cli

Version:

CLI tool exposing core PackagePal functionality.

15 lines (13 loc) 308 B
import { execFileSync } from 'child_process'; /** * @param {string} binPath * @param {string[]} args * @param {import('child_process').StdioOptions} stdio */ export const exec = ( binPath, args = process.argv.slice(2), stdio = 'inherit', ) => { return execFileSync( binPath, args, { stdio }, ); };