dotfiles/fake_home/.vim/templates/skeleton.js

25 lines
420 B
JavaScript
Raw Normal View History

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!')
})
// 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")))