bun
121
总安装量
121
周安装量
#1950
全站排名
安装命令
npx skills add https://github.com/dalestudy/skills --skill bun
Agent 安装分布
claude-code
110
opencode
60
antigravity
58
codex
56
github-copilot
54
Skill 文档
Bun
Node.js ëì Bunì 기본 ë°íìì¼ë¡ ì¬ì©.
ì¤ì¹
curl -fsSL https://bun.sh/install | bash
ëª ë ¹ì´ ë§¤í
| 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
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