Bun is a faster JavaScript runtime alternative to Node.js. This skill provides guidance on migrating projects to Bun and using its command-line tools for package management and development.
$ npx skills add https://github.com/dalestudy/skills --skill bunThe Bun skill helps developers transition from Node.js to Bun, a faster JavaScript runtime. It includes command mappings from npm and yarn to Bun equivalents, project initialization guidance, and package management workflows. The skill also covers GitHub Actions CI configuration for Bun projects and provides a Node.js migration checklist to ensure smooth transitions. This is useful for developers looking to improve build and runtime performance in their JavaScript projects.
Bun을 설치한 후, 런타임으로 사용하세요.
Bun으로 JavaScript 프로젝트 실행
Bun을 기본 런타임으로 설정
Bun을 사용하여 패키지 관리
$ npx skills add https://github.com/dalestudy/skills --skill bungit clone https://github.com/dalestudy/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an expert in Bun runtime. Provide a step-by-step migration plan for moving a [PROJECT_NAME] from Node.js to Bun in [COMPANY_NAME]'s [INDUSTRY] environment. Include commands to test compatibility with [DATA_TYPE] like APIs, databases, or CLI tools. Use the latest Bun version [BUN_VERSION] and assume [DEPENDENCIES] are listed in package.json. Start with a compatibility check and end with performance benchmarks.
# Bun Migration Guide for Acme Corp's E-commerce API ## 1. Compatibility Check ```bash bun init -y bun add [email protected] bunx @bun-compat/check package.json ``` **Results:** - ✅ Express: 4.18.2 → Compatible (v1.0.24+) - ⚠️ Knex.js: 2.5.1 → Needs adapter (use `bun:sqlite`) - ❌ Sharp: 0.32.6 → Replace with `bun:sharp` ## 2. Dependency Updates ```bash # Replace incompatible packages bun add bun:sqlite knex bun add bun:sharp sharp ``` ## 3. Code Adjustments ```javascript // Before (Node.js) const fs = require('fs'); // After (Bun) import { readFileSync } from 'fs'; ``` ## 4. Performance Benchmark (vs Node.js 20) ``` # API Response Time (1000 requests) Node.js: 1245ms Bun: 789ms (37% faster) # Memory Usage Node.js: 180MB Bun: 110MB ``` ## 5. Deployment Notes - Use `bun run` instead of `node` - Replace `npm ci` with `bun install --frozen-lockfile` - Add `.bunfig.toml` for optimized settings: ```toml [install] strict_peer_deps = true ```
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan