parent
7699de1ec9
commit
8f3f1662d3
|
@ -7,18 +7,17 @@ document.addEventListener('DOMContentLoaded', function initJs () {
|
||||||
|
|
||||||
|
|
||||||
// skeleton-script.js
|
// skeleton-script.js
|
||||||
|
// See: https://bun.sh/docs/runtime/shell
|
||||||
|
|
||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
|
|
||||||
// See: https://bun.sh/docs/runtime/shell
|
import { $ } from 'bun'
|
||||||
|
|
||||||
import { $ } from "bun";
|
|
||||||
|
|
||||||
const lines = $`ls`.lines()
|
const lines = $`ls`.lines()
|
||||||
|
|
||||||
for await (let line of lines) {
|
for await (const line of lines) {
|
||||||
console.log(line);
|
console.log(line)
|
||||||
}
|
}
|
||||||
|
|
||||||
const lineArray = await Array.fromAsync(lines)
|
const lineArray = await Array.fromAsync(lines)
|
||||||
console.log(lineArray.filter(s => s.startsWith("D")))
|
console.log(lineArray.filter(s => s.startsWith('D')))
|
||||||
|
|
|
@ -274,6 +274,8 @@ export nvm_loaded=false
|
||||||
alias nvm="load_nvm; nvm"
|
alias nvm="load_nvm; nvm"
|
||||||
alias npm="load_nvm; npm"
|
alias npm="load_nvm; npm"
|
||||||
alias node="load_nvm; node"
|
alias node="load_nvm; node"
|
||||||
|
alias standard="load_nvm; standard"
|
||||||
|
alias lf="load_nvm; standard --fix"
|
||||||
|
|
||||||
function load_nvm {
|
function load_nvm {
|
||||||
if $nvm_loaded; then
|
if $nvm_loaded; then
|
||||||
|
|
Loading…
Reference in New Issue