Skip to content

Commit cd1986c

Browse files
committed
doc: update README
1 parent fbf1e5a commit cd1986c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The library provides the out of box accessing to MediaWiki API in both browsers
2121
- With unit tests
2222
- User authentication supports out of the box \*(also applicable to Node.js!)
2323

24-
## 开箱即用/Out of box
24+
## 开箱即用 Out of box
2525

26-
**安装/installation**
26+
**安装 Installation**
2727

2828
```sh
2929
# Via pnpm:
@@ -42,7 +42,7 @@ const api = new MediaWikiApi('https://zh.moegirl.org.cn/api.php')
4242
// ...
4343
```
4444

45-
**在浏览器中直接使用/Use directly in the browser**
45+
**在浏览器中直接使用 Use directly in the browser**
4646

4747
```js
4848
import('https://unpkg.com/wiki-saikou?module').then(({ MediaWikiApi }) => {
@@ -53,7 +53,7 @@ import('https://unpkg.com/wiki-saikou?module').then(({ MediaWikiApi }) => {
5353

5454
Then use it just like the `new mw.Api()`
5555

56-
## 使用方法/Usage
56+
## 使用方法 Usage
5757

5858
You can find some sample code snippets [here](test/).
5959

@@ -98,11 +98,11 @@ type MwTokenName =
9898
| 'watch'
9999
```
100100
101-
### Auxiliary utilities
101+
### 工具函数 Auxiliary utilities
102102
103-
#### `get request` {AxiosInstance}
103+
#### `get request` {Fexios}
104104
105-
Get `Lyla` instance of current MediaWikiApi instance
105+
Get `Fexios` instance of current MediaWikiApi instance
106106
107107
#### `MediaWikiApi.normalizeParamValue(params: MwApiParams[keyof MwApiParams]): string | File | undefined` (static)
108108

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"node",
3333
"api-wrapper",
3434
"typescript",
35-
"axios"
35+
"fetch",
36+
"fetch-api",
37+
"fexios"
3638
],
3739
"author": "Dragon-Fish <dragon-fish@qq.com>",
3840
"license": "MIT",

0 commit comments

Comments
 (0)