--- name: js-bun-majo description: Use Bun instead of Node.js and npm for JavaScript and TypeScript development. license: Unlicense OR 0BSD metadata: author: Mark Joshwel version: "2026.2.2" --- # JavaScript/TypeScript with Bun **Goal**: Ensure Bun is used as the runtime, tooling, and package manager for all JavaScript and TypeScript development, completely replacing Node.js and npm. ## When to Use This Skill - **Initializing a new JS/TS project** - **Migrating from Node.js/npm to Bun** - **Running JavaScript or TypeScript code** - **Installing packages or dependencies** - **Building or bundling JS/TS projects** - **Writing scripts in package.json equivalents** ## When NOT to Use This Skill - **Project explicitly requires Node.js runtime** (e.g., specific Node APIs) - **Legacy project with npm-specific configurations that can't migrate** - **Working with Deno instead of Bun** ## Process 1. **Check for existing Node/npm usage** - Look for `package-lock.json`, `node_modules`, npm scripts 2. **Install Bun if not present** - Use system package manager or `curl -fsSL https://bun.sh/install | bash` 3. **Initialize with Bun** - Use `bun init` instead of `npm init` 4. **Install dependencies** - Use `bun install` instead of `npm install` 5. **Run scripts** - Use `bun run