Skip to content

Commit 1a31ddd

Browse files
committed
other
1 parent d69df02 commit 1a31ddd

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
310310
```ts
311311
interface IFetchFileConfig extends IFetchBaseConifg {
312312
fileConfig: {
313-
storeDir: string
313+
storeDir: string // store folder
314+
extension?: string // filename extension
314315
}
315316
}
316317
```

document/cn.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
322322
```ts
323323
interface IFetchFileConfig extends IFetchBaseConifg {
324324
fileConfig: {
325-
storeDir: string
325+
storeDir: string // 存放文件夹
326+
extension?: string // 文件扩展名
326327
}
327328
}
328329
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "x-crawl",
4-
"version": "0.3.2",
4+
"version": "0.4.0",
55
"author": "CoderHxl",
66
"description": "XCrawl is a Nodejs multifunctional crawler library.",
77
"license": "MIT",

publish/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ XCrawl is a Nodejs multifunctional crawler library.
1717

1818
- [Install](#Install)
1919
- [Example](#Example)
20-
- [Core concepts](#Core concepts)
20+
- [Core concepts](#Core-concepts)
2121
* [XCrawl](#XCrawl)
2222
+ [Type](#Type-1)
2323
+ [Example](#Example-1)
@@ -310,7 +310,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
310310
```ts
311311
interface IFetchFileConfig extends IFetchBaseConifg {
312312
fileConfig: {
313-
storeDir: string
313+
storeDir: string // store folder
314+
extension?: string // filename extension
314315
}
315316
}
316317
```

publish/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "x-crawl",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"author": "CoderHxl",
55
"description": "XCrawl is a Nodejs multifunctional crawler library.",
66
"license": "MIT",

test/start/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/start/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ testXCrawl
5454
url: 'https://www.google.com.hk/' + imgEl!.src,
5555
proxy: 'http://127.0.0.1:14892'
5656
},
57-
fileConfig: { storeDir: path.resolve(__dirname, './upload') }
57+
fileConfig: {
58+
storeDir: path.resolve(__dirname, './upload'),
59+
extension: 'jpg'
60+
}
5861
})
5962
})

0 commit comments

Comments
 (0)