Loading...
Loading...
Use Bun instead of Node.js, npm, pnpm, or vite. Provides command mappings, Bun-specific APIs, and development patterns.
npx skill4agent add brianlovin/claude-config bun| Instead of | Use |
|---|---|
| |
| |
| |
| |
| |
| |
.env| API | Purpose | Don't use |
|---|---|---|
| HTTP server with WebSocket, HTTPS, routes | express |
| SQLite database | better-sqlite3 |
| Redis client | ioredis |
| Postgres client | pg, postgres.js |
| File operations | node:fs readFile/writeFile |
| Shell commands | execa |
| WebSocket client (built-in) | ws |
bun:testimport { test, expect } from "bun:test";
test("description", () => {
expect(1).toBe(1);
});bun testBun.serve()import index from "./index.html"
Bun.serve({
routes: {
"/": index,
"/api/users/:id": {
GET: (req) => Response.json({ id: req.params.id }),
},
},
development: { hmr: true, console: true }
})<html>
<body>
<script type="module" src="./app.tsx"></script>
</body>
</html>.tsx.jsx.js<link>bun --hot ./server.tsnode_modules/bun-types/docs/**.md