安裝
備註
這個套件會不定期更新,如果你發現尚有問題或發生錯誤,請在 Github 上開啟新問題。
需求
- Node.js 12 或以上
使用套件管理器安裝
API Wrapper 提供使用套件管理器進行安裝。
- npm
- Yarn
- pnpm
npm i git+https://github.com/ExpTechTW/api-wrapper.git
yarn add git+https://github.com/ExpTechTW/api-wrapper.git
pnpm add git+https://github.com/ExpTechTW/api-wrapper.git
手動安裝
原始碼有包含已經建置好的檔案可以使用。
-
複製儲存庫
git clone https://github.com/ExpTechTW/api-wrapper.git
-
引用
dist
資料夾下的檔案dist
資料夾中包含了三個檔案和一個資料夾/types
- 包含了所有類別定義檔案index.js
- CommonJS 版本index.min.js
- 最小化後的 CommonJS 版本index.mjs
- ESModule 版本