// skeleton.js document.addEventListener('DOMContentLoaded', function initJs () { console.log('Hello, world!') }) // skeleton-script.js // See: https://bun.sh/docs/runtime/shell #!/usr/bin/env bun import { $ } from 'bun' const lines = $`ls`.lines() for await (const line of lines) { console.log(line) } const lineArray = await Array.fromAsync(lines) console.log(lineArray.filter(s => s.startsWith('D')))