Commit 2f0c20e 1 parent fe94e72 commit 2f0c20e Copy full SHA for 2f0c20e
File tree 7 files changed +13
-27
lines changed
7 files changed +13
-27
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
17
17
18
18
You can specify the following options via query string parameters:
19
19
20
- - ` includeEntryContent `
21
- - ` includeOptionalElements `
22
- - ` useISODateFormat `
23
20
- ` normalization `
21
+ - ` useISODateFormat `
24
22
25
23
These params can be set to ` y ` or ` n ` , with ` y ` is truthy, ` n ` is falsy.
26
24
27
25
For examples:
28
26
29
27
```
30
- http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
28
+ http://localhost:3103/?normalization=y&useISODateFormat=y& url=https://news.google.com/rss
31
29
```
32
30
33
-
34
31
---
Original file line number Diff line number Diff line change @@ -11,17 +11,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
11
11
12
12
You can specify the following options via query string parameters:
13
13
14
- - ` includeEntryContent `
15
- - ` includeOptionalElements `
16
- - ` useISODateFormat `
17
14
- ` normalization `
15
+ - ` useISODateFormat `
18
16
19
17
These params can be set to ` y ` or ` n ` , with ` y ` is truthy, ` n ` is falsy.
20
18
21
19
For examples:
22
20
23
21
```
24
- http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
22
+ http://localhost:3103/?normalization=y&useISODateFormat=y& url=https://news.google.com/rss
25
23
```
26
24
27
25
---
Original file line number Diff line number Diff line change @@ -19,17 +19,15 @@ Open `http://localhost:3103/?url=https://news.google.com/rss` to see the result.
19
19
20
20
You can specify the following options via query string parameters:
21
21
22
- - ` includeEntryContent `
23
- - ` includeOptionalElements `
24
- - ` useISODateFormat `
25
22
- ` normalization `
23
+ - ` useISODateFormat `
26
24
27
25
These params can be set to ` y ` or ` n ` , with ` y ` is truthy, ` n ` is falsy.
28
26
29
27
For examples:
30
28
31
29
```
32
- http://localhost:3103/?url=https://news.google.com/rss&includeEntryContent=y&useISODateFormat=n&includeOptionalElements=y
30
+ http://localhost:3103/?normalization=y&useISODateFormat=y& url=https://news.google.com/rss
33
31
```
34
32
35
33
---
Original file line number Diff line number Diff line change 8
8
},
9
9
"dependencies" : {
10
10
"@extractus/feed-extractor" : " latest" ,
11
- "express" : " ^4.18.1 "
11
+ "express" : " ^4.18.2 "
12
12
}
13
13
}
Original file line number Diff line number Diff line change 7
7
"start" : " node dist/index.js"
8
8
},
9
9
"devDependencies" : {
10
- "typescript" : " ^4.8.3 "
10
+ "typescript" : " ^4.9.4 "
11
11
},
12
12
"dependencies" : {
13
13
"@extractus/feed-extractor" : " latest" ,
14
- "express" : " ^4.18.1 "
14
+ "express" : " ^4.18.2 "
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -32,16 +32,6 @@ export interface ReaderOptions {
32
32
* default: true
33
33
*/
34
34
normalization ?: boolean ;
35
- /**
36
- * include full content of feed entry if present
37
- * default: false
38
- */
39
- includeEntryContent ?: boolean ;
40
- /**
41
- * include optional elements if any
42
- * default: false
43
- */
44
- includeOptionalElements ?: boolean ;
45
35
/**
46
36
* convert datetime to ISO format
47
37
* default: true
@@ -80,4 +70,7 @@ export interface FetchOptions {
80
70
proxy ?: ProxyConfig ;
81
71
}
82
72
73
+ export function extractFromXml ( xml : string , options ?: ReaderOptions ) : object < FeedData > ;
74
+ export function extractFromJson ( json : string , options ?: ReaderOptions ) : object < FeedData > ;
75
+ export function extract ( url : string , options ?: ReaderOptions , fetchOptions ?: FetchOptions ) : Promise < FeedData > ;
83
76
export function read ( url : string , options ?: ReaderOptions , fetchOptions ?: FetchOptions ) : Promise < FeedData > ;
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 6.2.1rc1 " ,
2
+ "version" : " 6.2.1rc2 " ,
3
3
"name" : " @extractus/feed-extractor" ,
4
4
"description" : " To read and normalize RSS/ATOM/JSON feed data" ,
5
5
"homepage" : " https://github.com/extractus/feed-extractor" ,
You can’t perform that action at this time.
0 commit comments