Read from stdout as an ArrayBuffer
Automatically calls quiet
Symbol
Read from stdout as an ArrayBuffer
Automatically calls quiet
A promise that resolves with stdout as an ArrayBuffer
const output = await $`echo hello`.arrayBuffer();
console.log(output); // ArrayBuffer { byteLength: 6 }
Represents a raw buffer of binary data, which is used to store data for the different typed arrays. ArrayBuffers cannot be read from or written to directly, but can be passed to a typed array or DataView Object to interpret the raw buffer as needed.