最近 Deno 死んだが、Bun にも auto-install というのがあると知った(今更)
プロジェクトに
package.json, node_modules がなくてもグローバルキャッシュから npm を importできる。書き捨てスクリプトに便利
https インポートは無理
https://bun.sh/docs/runtime/auto-install
ts
import { say } from "cowsay"; console.log(say({ text: "Bun auto-import" })); // _________________ // < Bun auto-import > // ----------------- // \ ^__^ // \ (oo)\_______ // (__)\ )\/\ // ||----w | // || ||

BunAuto-install | Bun DocsBun's automatic package installation feature for standalone script execution
commit 51e6683