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

24 lines
417 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
// 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')))