File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 8282
8383</details >
8484
85- ## Installation
85+ ## 使用
8686
8787### Node.js
8888
89- Node.js >= v18.12 .0
89+ Node.js >= v20.19 .0
9090
9191``` bash
9292npm i jike-sdk
9393```
9494
95- #### ESM 导入
96-
97- 如果使用 ESM 方式导入,需要把 ` package.json ` 的 ` type ` 设置为 ` module ` ,或将后缀名改为 ` .mjs ` 。
98-
9995``` ts
100- // index.mjs
101-
102- // 使用此版本需 node >= 18 或 自行 ployfill fetch。
10396import { setApiConfig } from ' jike-sdk'
10497
10598setApiConfig ({
10699 // ...
107100})
108101```
109102
110- #### CJS 导入
111-
112- ``` ts
113- const { setApiConfig } = require (' jike-sdk' )
114- setApiConfig ({
115- // ...
116- })
117- ```
118-
119103### Bun
120104
121105Bun >= 0.5.8
@@ -182,7 +166,7 @@ const client = ApiClient(apiConfig)
182166client .users .profile ()
183167```
184168
185- ## Contributing [ ![ PRs Welcome ] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square )] ( https://makeapullrequest.com )
169+ ## Contributing
186170
187171see [ CONTRIBUTING.md] ( ./CONTRIBUTING.md )
188172
@@ -196,4 +180,4 @@ see [CONTRIBUTING.md](./CONTRIBUTING.md)
196180
197181## License
198182
199- [ AGPL-3.0] ( ./LICENSE ) License © 2021-PRESENT [ 三咲智子 ] ( https://github.com/sxzz )
183+ [ AGPL-3.0] ( ./LICENSE ) License © 2021-PRESENT [ Kevin Deng ] ( https://github.com/sxzz )
You can’t perform that action at this time.
0 commit comments