bun-runtime by affaan-m/everything-claude-code
npx skills add https://github.com/affaan-m/everything-claude-code --skill bun-runtimeBun 是一个快速的全能 JavaScript 运行时和工具包:包含运行时、包管理器、打包器和测试运行器。
适用场景:采用 Bun、从 Node 迁移、编写或调试 Bun 脚本/测试,或在 Vercel 或其他平台上配置 Bun。
bun install 比 npm/yarn 快得多。在当前版本的 Bun 中,默认锁文件是 bun.lock(文本格式);旧版本使用 bun.lockb(二进制格式)。bun test,提供类似 Jest 的 API。从 Node 迁移:将 node script.js 替换为 或 。用 代替 ;大多数包都可以正常工作。使用 来运行 npm 脚本;使用 进行类似 npx 的一次性运行。支持 Node 内置模块;在存在对应 Bun API 的情况下,优先使用 Bun API 以获得更好的性能。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
bun run script.jsbun script.jsbun installnpm installbun runbun xVercel:在项目设置中将运行时设置为 Bun。构建命令:bun run build 或 bun build ./src/index.ts --outdir=dist。安装命令:对于可重复的部署,使用 bun install --frozen-lockfile。
# 安装依赖项(创建/更新 bun.lock 或 bun.lockb)
bun install
# 运行脚本或文件
bun run dev
bun run src/index.ts
bun src/index.ts
bun run --env-file=.env dev
FOO=bar bun run script.ts
bun test
bun test --watch
// test/example.test.ts
import { expect, test } from "bun:test";
test("add", () => {
expect(1 + 2).toBe(3);
});
const file = Bun.file("package.json");
const json = await file.json();
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello");
},
});
bun.lock 或 bun.lockb)以确保可重复的安装。bun run。对于 TypeScript,Bun 原生支持运行 .ts 文件。每周安装量
316
代码仓库
GitHub 星标数
102.1K
首次出现
8 天前
安全审计
安装于
codex302
cursor269
gemini-cli266
github-copilot266
amp266
cline266
Bun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.
Use when: adopting Bun, migrating from Node, writing or debugging Bun scripts/tests, or configuring Bun on Vercel or other platforms.
bun install is significantly faster than npm/yarn. Lockfile is bun.lock (text) by default in current Bun; older versions used bun.lockb (binary).bun test with Jest-like API.Migration from Node : Replace node script.js with bun run script.js or bun script.js. Run bun install in place of npm install; most packages work. Use bun run for npm scripts; bun x for npx-style one-off runs. Node built-ins are supported; prefer Bun APIs where they exist for better performance.
Vercel : Set runtime to Bun in project settings. Build: bun run build or bun build ./src/index.ts --outdir=dist. Install: bun install --frozen-lockfile for reproducible deploys.
# Install dependencies (creates/updates bun.lock or bun.lockb)
bun install
# Run a script or file
bun run dev
bun run src/index.ts
bun src/index.ts
bun run --env-file=.env dev
FOO=bar bun run script.ts
bun test
bun test --watch
// test/example.test.ts
import { expect, test } from "bun:test";
test("add", () => {
expect(1 + 2).toBe(3);
});
const file = Bun.file("package.json");
const json = await file.json();
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello");
},
});
bun.lock or bun.lockb) for reproducible installs.bun run for scripts. For TypeScript, Bun runs .ts natively.Weekly Installs
316
Repository
GitHub Stars
102.1K
First Seen
8 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex302
cursor269
gemini-cli266
github-copilot266
amp266
cline266
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
Anthropic品牌风格指南技能 - 获取官方品牌标识、颜色、字体和视觉设计规范
1,000 周安装
App Store Connect 元数据自动化本地化工具 - asc-localize-metadata 使用指南
1,100 周安装
Chat SDK:统一 TypeScript SDK,一次编写跨 Slack、Teams、Discord 等平台的聊天机器人
1,000 周安装
YARA-X 规则编写指南:恶意软件检测规则优化与最佳实践
1,000 周安装
AI代码审查工具:自动化PR审查、TypeScript最佳实践与CI成本优化
1,100 周安装
App Store Connect 自动化创建应用指南:asc-app-create-ui 技能详解
1,000 周安装