Bun Shell is a cross-platform bash-like shell built in to Bun. It runs shell commands in JavaScript and TypeScript. To get started, import theDocumentation Index
Fetch the complete documentation index at: https://bun.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
$ function from the bun package and use it to run shell commands.
The
$ function is a tagged template literal that runs the command and returns a promise that resolves with the command’s output.
To get each line of the output as an array, use the
lines method.
See Docs > API > Shell for complete documentation.