File tree 3 files changed +19
-38
lines changed
3 files changed +19
-38
lines changed Original file line number Diff line number Diff line change 12
12
13
13
strategy :
14
14
matrix :
15
- node_version : [18.x, 20.x, 22.x, 23.x]
15
+ node_version : [20.x, 22.x, 23.x]
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -10,47 +10,27 @@ Extract main article, main image and meta data from URL.
10
10
11
11
## Demo
12
12
13
- - [ Give it a try!] ( https://extractor-demos.pages.dev/article-extractor )
14
- - [ Example FaaS] ( https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=article&url=https://github.blog/2022-11-17-octoverse-2022-10-years-of-tracking-open-source/ )
13
+ - [ Give it a try!] ( https://extractus-demo.vercel.app/article )
15
14
16
-
17
- ## Install & Usage
18
-
19
- ### Node.js
15
+ ## Install
20
16
21
17
``` bash
18
+ # npm, pnpm, yarn
22
19
npm i @extractus/article-extractor
23
20
24
- # pnpm
25
- pnpm i @extractus/article-extractor
26
-
27
- # yarn
28
- yarn add @extractus/article-extractor
29
- ```
30
-
31
- ``` ts
32
- // es6 module
33
- import { extract } from ' @extractus/article-extractor'
21
+ # bun
22
+ bun add @extractus/article-extractor
34
23
```
35
24
36
- ### Deno
25
+ ## Usage
37
26
38
27
``` ts
39
- import { extract } from ' https://esm.sh/ @extractus/article-extractor'
28
+ import { extract } from ' @extractus/article-extractor'
40
29
41
- // deno > 1.28
42
- import { extract } from ' npm:@extractus/article-extractor '
30
+ const data = await extract ( ARTICLE_URL )
31
+ console . log ( data )
43
32
```
44
33
45
- ### Browser
46
-
47
- ``` ts
48
- import { extract } from ' https://esm.sh/@extractus/article-extractor'
49
- ```
50
-
51
- Please check [ the examples] ( examples ) for reference.
52
-
53
-
54
34
## APIs
55
35
56
36
- [ extract()] ( #extract )
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 8.0.17 " ,
2
+ "version" : " 8.0.18 " ,
3
3
"name" : " @extractus/article-extractor" ,
4
4
"description" : " To extract main article from given URL" ,
5
5
"homepage" : " https://github.com/extractus/article-extractor" ,
30
30
"reset" : " node reset"
31
31
},
32
32
"dependencies" : {
33
- "@mozilla/readability" : " ^0.5 .0" ,
33
+ "@mozilla/readability" : " ^0.6 .0" ,
34
34
"bellajs" : " ^11.2.0" ,
35
35
"cross-fetch" : " ^4.1.0" ,
36
- "linkedom" : " ^0.18.9 " ,
37
- "sanitize-html" : " 2.14 .0"
36
+ "linkedom" : " ^0.18.10 " ,
37
+ "sanitize-html" : " 2.16 .0"
38
38
},
39
39
"devDependencies" : {
40
- "@types/sanitize-html" : " ^2.13.0" ,
41
- "eslint" : " ^9.20.0" ,
42
- "globals" : " ^15.14.0" ,
40
+ "@eslint/js" : " ^9.26.0" ,
41
+ "@types/sanitize-html" : " ^2.15.0" ,
42
+ "eslint" : " ^9.26.0" ,
43
+ "globals" : " ^16.0.0" ,
43
44
"https-proxy-agent" : " ^7.0.6" ,
44
- "nock" : " ^14.0.1 "
45
+ "nock" : " ^14.0.4 "
45
46
},
46
47
"keywords" : [
47
48
" article" ,
You can’t perform that action at this time.
0 commit comments