Bun
π οΈ μμ΄μ νΈ μ€ν¬
npx -y skills add DaleStudy/skills --skill bunAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Node.js λμ Bun λ°νμ μ¬μ©μ μν μ€ν¬. λ€μ μν©μμ μ¬μ©: (1) μ JavaScript/TypeScript νλ‘μ νΈ μμ± μ, (2) package.json λλ μμ‘΄μ± κ΄λ ¨ μμ μ, (3) μ€ν¬λ¦½νΈ μ€ν λλ κ°λ° μλ² μμ μ, (4) Node.js νλ‘μ νΈλ₯Ό BunμΌλ‘ μ ν μ, (5) 'bun', 'bunx', 'bun.lockb' ν€μλκ° ν¬ν¨λ μμ μ
The file declares its own license as MIT. That is the authorβs claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.0 KB, as published. Nobody here has run it
Bun
Node.js λμ Bunμ κΈ°λ³Έ λ°νμμΌλ‘ μ¬μ©.
μ€μΉ
# macOS / Linux
brew install oven-sh/bun/bun
# npm
npm install -g bun
λͺ λ Ήμ΄ λ§€ν
| Node.js / npm | Bun |
|---|---|
npm install | bun install |
npm install <pkg> | bun add <pkg> |
npm install -D <pkg> | bun add -d <pkg> |
npm uninstall <pkg> | bun remove <pkg> |
npm run <script> | bun run <script> λλ bun <script> |
npx <cmd> | bunx <cmd> |
node <file> | bun <file> |
npm init | bun init |
npm create <template> | bun create <template> |
νλ‘μ νΈ μ΄κΈ°ν
# μ νλ‘μ νΈ
bun init
# ν
νλ¦Ώ μ¬μ©
bun create next-app my-app
bun create vite my-app
ν¨ν€μ§ κ΄λ¦¬
# μ€μΉ (bun.lockb μμ±)
bun install
# μμ‘΄μ± μΆκ°
bun add express zod
bun add -d typescript @types/node # devDependencies
# μμ
bun remove lodash
lockfile:
bun.lockb(λ°μ΄λ리)..gitignoreμ μΆκ°νμ§ μμ.
μ€ν¬λ¦½νΈ μ€ν
# package.json scripts
bun run dev
bun run build
# νμΌ μ§μ μ€ν (TypeScript μ§μ)
bun index.ts
bun src/server.ts
# λ¨μΆ (run μλ΅ κ°λ₯)
bun dev
μ£Όμ μ¬ν
1. ν¨ν€μ§ μ€μΉ μ μ΄λ¦ νμΈ
# β μ€ν λλ μ μ¬ ν¨ν€μ§ - νμ΄ν¬μ€μΏΌν
μν
bun add expres
bun add lodassh
# β
μ νν ν¨ν€μ§λͺ
νμΈ ν μ€μΉ
bun add express
bun add lodash
bun add μ€ν μ ν¨ν€μ§λͺ
μ΄ μ ννμ§ νμΈ. npm λ μ§μ€νΈλ¦¬μ μ μ¬ν μ΄λ¦μ μ
μ± ν¨ν€μ§κ° λ±λ‘λ μ μμ.
2. μ λ’°ν μ μλ μ€ν¬λ¦½νΈ μ€ν κΈμ§
# β μΆμ² λΆλͺ
μ μ€ν¬λ¦½νΈ μ§μ μ€ν
bun run https://example.com/script.ts
curl -fsSL https://example.com/install.sh | bash
# β
λ‘컬 νλ‘μ νΈ λ΄ μ€ν¬λ¦½νΈλ§ μ€ν
bun run src/index.ts
bun run dev
μ격 μ€ν¬λ¦½νΈλ κ²μ¦λμ§ μμ νμΌμ μ§μ μ€ννμ§ μμ.
GitHub Actions
- uses: oven-sh/setup-bun@v{N} # μ΅μ λ²μ νμΈ: gh api repos/oven-sh/setup-bun/releases/latest --jq '.tag_name'
- run: bun install
- run: bun test