Skip to content

Commit

Permalink
other
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hxl committed Feb 16, 2023
1 parent d69df02 commit 1a31ddd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
```ts
interface IFetchFileConfig extends IFetchBaseConifg {
fileConfig: {
storeDir: string
storeDir: string // store folder
extension?: string // filename extension
}
}
```
Expand Down
3 changes: 2 additions & 1 deletion document/cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
```ts
interface IFetchFileConfig extends IFetchBaseConifg {
fileConfig: {
storeDir: string
storeDir: string // 存放文件夹
extension?: string // 文件扩展名
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "x-crawl",
"version": "0.3.2",
"version": "0.4.0",
"author": "CoderHxl",
"description": "XCrawl is a Nodejs multifunctional crawler library.",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions publish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ XCrawl is a Nodejs multifunctional crawler library.

- [Install](#Install)
- [Example](#Example)
- [Core concepts](#Core concepts)
- [Core concepts](#Core-concepts)
* [XCrawl](#XCrawl)
+ [Type](#Type-1)
+ [Example](#Example-1)
Expand Down Expand Up @@ -310,7 +310,8 @@ interface IFetchDataConfig extends IFetchBaseConifg {
```ts
interface IFetchFileConfig extends IFetchBaseConifg {
fileConfig: {
storeDir: string
storeDir: string // store folder
extension?: string // filename extension
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion publish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "x-crawl",
"version": "0.3.1",
"version": "0.4.0",
"author": "CoderHxl",
"description": "XCrawl is a Nodejs multifunctional crawler library.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion test/start/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/start/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ testXCrawl
url: 'https://www.google.com.hk/' + imgEl!.src,
proxy: 'http://127.0.0.1:14892'
},
fileConfig: { storeDir: path.resolve(__dirname, './upload') }
fileConfig: {
storeDir: path.resolve(__dirname, './upload'),
extension: 'jpg'
}
})
})

0 comments on commit 1a31ddd

Please sign in to comment.