2024-01-20 19:19:02 -05:00
|
|
|
// skeleton.js
|
|
|
|
|
2024-01-20 18:33:31 -05:00
|
|
|
document.addEventListener('DOMContentLoaded', function initJs () {
|
|
|
|
console.log('Hello, world!')
|
|
|
|
})
|
2024-06-24 12:24:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// skeleton-script.js
|
|
|
|
|
|
|
|
#!/usr/bin/env bun
|
|
|
|
|
|
|
|
// See: https://bun.sh/docs/runtime/shell
|
|
|
|
|
|
|
|
import { $ } from "bun";
|
|
|
|
|
|
|
|
const lines = $`ls`.lines()
|
|
|
|
|
|
|
|
for await (let line of lines) {
|
|
|
|
console.log(line);
|
|
|
|
}
|
|
|
|
|
|
|
|
const lineArray = await Array.fromAsync(lines)
|
|
|
|
console.log(lineArray.filter(s => s.startsWith("D")))
|