Skip to content

要使用別名安裝 npm 包:

sh
bun add my-custom-name@npm:zod

現在可以將 zod 包作為 my-custom-name 導入。

ts
import { z } from "my-custom-name";

z.string();

請參閱 文檔 > 包管理器 獲取 Bun 包管理器的完整文檔。

Bun學習網由www.bunjs.com.cn整理維護