Loading...
Loading...
Compare original and translation side by side
MUSTMUST NOTREQUIREDSHALLSHALL NOTSHOULDSHOULD NOTRECOMMENDEDMAYOPTIONALBun.serveBun.fileBun.writeBun.$Bun.spawnbun:sqlitebun:testMUSTMUST NOTREQUIREDSHALLSHALL NOTSHOULDSHOULD NOTRECOMMENDEDMAYOPTIONALBun.serveBun.fileBun.writeBun.$Bun.spawnbun:sqlitebun:test| Topic | Reference | Load when |
|---|---|---|
| HTTP server and routing | | Building |
| File I/O, shell, and processes | | Using |
| Testing | | Writing |
| SQLite, bundler, macros, utilities | | Using |
| Configuration and compatibility | | |
| 主题 | 参考文档 | 加载时机 |
|---|---|---|
| HTTP服务器与路由 | | 构建 |
| 文件I/O、Shell与进程 | | 使用 |
| 测试 | | 编写 |
| SQLite、打包工具、宏、实用工具 | | 使用 |
| 配置与兼容性 | | 处理 |
Bun.serve()Bun.file()Bun.write()Bun.$Bun.spawn()bun:testbun:sqlitenode:*node:fs/promisesfetchRequestResponseReadableStreamBlobAbortControllerBun.serve()Bun.file()Bun.write()Bun.$Bun.spawn()bun:testbun:sqlitenode:*node:*node:fs/promisesfetchRequestResponseReadableStreamBlobAbortControllerBun.serve({ routes })fetchResponsePromise<Response>Bun.serve()errorResponsenew Response(Bun.file(path))Bun.serve({ routes })fetchResponsePromise<Response>Bun.serve()errorResponsenew Response(Bun.file(path))bun.lockbun.lockbbun install --frozen-lockfiletrustedDependenciesbun pm trust <pkg>--minimum-release-agebun.lockbun.lockbbun install --frozen-lockfiletrustedDependenciesbun pm trust <pkg>--minimum-release-agebun:testbun:testafterEachexpectTypeOfbunx tsc --noEmitbun:testbun:testafterEachexpectTypeOfbunx tsc --noEmitBun.build()result.successresult.logs"bun""browser""node"with { type: "macro" }Bun.build()result.successresult.logs"bun""browser""node"with { type: "macro" }