Skip to content

Commit 9ae7049

Browse files
committed
chore: update readme
1 parent dcf99d4 commit 9ae7049

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

README.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,36 +86,20 @@
8686

8787
### Node.js
8888

89-
Node.js >= v18.12.0
89+
Node.js >= v20.19.0
9090

9191
```bash
9292
npm 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。
10396
import { setApiConfig } from 'jike-sdk'
10497

10598
setApiConfig({
10699
// ...
107100
})
108101
```
109102

110-
#### CJS 导入
111-
112-
```ts
113-
const { setApiConfig } = require('jike-sdk')
114-
setApiConfig({
115-
// ...
116-
})
117-
```
118-
119103
### Bun
120104

121105
Bun >= 0.5.8
@@ -182,7 +166,7 @@ const client = ApiClient(apiConfig)
182166
client.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

187171
see [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)

0 commit comments

Comments
 (0)