Skip to content

Commit 0aece0a

Browse files
committed
docs: add bun support
1 parent 42542a9 commit 0aece0a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Features
1414

1515
- 🌈 可能是东半球最全的第三方 SDK
16-
- ⭐️ 同时支持 Node.js / 浏览器 / Deno
16+
- ⭐️ 同时支持 Node.js / 浏览器 / Deno / Bun
1717
- 🦾 自带 TypeScript 类型声明
1818

1919
<details>
@@ -113,6 +113,22 @@ setApiConfig({
113113
})
114114
```
115115

116+
### Bun
117+
118+
Bun >= 0.5.8
119+
120+
```bash
121+
bun i jike-sdk
122+
```
123+
124+
```ts
125+
// index.ts
126+
import { setApiConfig } from 'jike-sdk'
127+
setApiConfig({
128+
// ...
129+
})
130+
```
131+
116132
### Deno
117133

118134
```ts

0 commit comments

Comments
 (0)