File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ The library provides the out of box accessing to MediaWiki API in both browsers
21
21
- With unit tests
22
22
- User authentication supports out of the box \* (also applicable to Node.js!)
23
23
24
- ## 开箱即用/ Out of box
24
+ ## 开箱即用 Out of box
25
25
26
- ** 安装/installation **
26
+ ** 安装 Installation **
27
27
28
28
``` sh
29
29
# Via pnpm:
@@ -42,7 +42,7 @@ const api = new MediaWikiApi('https://zh.moegirl.org.cn/api.php')
42
42
// ...
43
43
```
44
44
45
- ** 在浏览器中直接使用/ Use directly in the browser**
45
+ ** 在浏览器中直接使用 Use directly in the browser**
46
46
47
47
``` js
48
48
import (' https://unpkg.com/wiki-saikou?module' ).then (({ MediaWikiApi }) => {
@@ -53,7 +53,7 @@ import('https://unpkg.com/wiki-saikou?module').then(({ MediaWikiApi }) => {
53
53
54
54
Then use it just like the ` new mw.Api() `
55
55
56
- ## 使用方法/ Usage
56
+ ## 使用方法 Usage
57
57
58
58
You can find some sample code snippets [ here] ( test/ ) .
59
59
@@ -98,11 +98,11 @@ type MwTokenName =
98
98
| ' watch'
99
99
` ` `
100
100
101
- ### Auxiliary utilities
101
+ ### 工具函数 Auxiliary utilities
102
102
103
- #### ` get request ` {AxiosInstance }
103
+ #### ` get request ` {Fexios }
104
104
105
- Get ` Lyla ` instance of current MediaWikiApi instance
105
+ Get ` Fexios ` instance of current MediaWikiApi instance
106
106
107
107
#### ` MediaWikiApi .normalizeParamValue (params : MwApiParams [keyof MwApiParams ]): string | File | undefined ` (static)
108
108
Original file line number Diff line number Diff line change 32
32
" node" ,
33
33
" api-wrapper" ,
34
34
" typescript" ,
35
- " axios"
35
+ " fetch" ,
36
+ " fetch-api" ,
37
+ " fexios"
36
38
],
37
39
"author" : " Dragon-Fish <dragon-fish@qq.com>" ,
38
40
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments