$ function from the bun package and use it to run shell commands.
foo.ts
The
$ function is a tagged template literal that runs the command and returns a promise that resolves with the command’s output.
foo.ts
To get each line of the output as an array, use the
lines method.
foo.ts
See Docs > API > Shell for complete documentation.