API
The package can be used as a library as well as a CLI.
typescript
import { run } from "@aibulat/run";
const program = "ls";
const args = ["-l", "-a"];
const cmd = run(program, args);Function signature
typescript
run(cmd: string, args: string[], clean: boolean, envfile: string)cmd— program to runargs— program argumentsclean— clean up all env vars exceptPATH,HOMEandSHELLbefore loading the env fileenvfile— env file to load. If not specified,.envin the current directory is loaded when present.