2485 shaares
83 private links
83 private links
Allows writing commandline arguments as if you're in a shell script, but from javascript.
Somewhat similar to execa, but afaik tries to implement its own cross-platform coreutil commands. Has quick $
based syntax by default:
import { $ } from "bun";
const response = await fetch("https://example.com");
// Use Response as stdin.
await $`echo < ${response} > wc -c`; // 120