Skip to content

Commit 1da50a5

Browse files
authored
Merge pull request #417 from extractus/8.0.18
8.0.18
2 parents e877084 + c3607df commit 1da50a5

File tree

3 files changed

+19
-38
lines changed

3 files changed

+19
-38
lines changed

.github/workflows/ci-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node_version: [18.x, 20.x, 22.x, 23.x]
15+
node_version: [20.x, 22.x, 23.x]
1616

1717
steps:
1818
- uses: actions/checkout@v4

README.md

+9-29
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,27 @@ Extract main article, main image and meta data from URL.
1010

1111
## Demo
1212

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)
1514

16-
17-
## Install & Usage
18-
19-
### Node.js
15+
## Install
2016

2117
```bash
18+
# npm, pnpm, yarn
2219
npm i @extractus/article-extractor
2320

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
3423
```
3524

36-
### Deno
25+
## Usage
3726

3827
```ts
39-
import { extract } from 'https://esm.sh/@extractus/article-extractor'
28+
import { extract } from '@extractus/article-extractor'
4029

41-
// deno > 1.28
42-
import { extract } from 'npm:@extractus/article-extractor'
30+
const data = await extract(ARTICLE_URL)
31+
console.log(data)
4332
```
4433

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-
5434
## APIs
5535

5636
- [extract()](#extract)

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "8.0.17",
2+
"version": "8.0.18",
33
"name": "@extractus/article-extractor",
44
"description": "To extract main article from given URL",
55
"homepage": "https://github.com/extractus/article-extractor",
@@ -30,18 +30,19 @@
3030
"reset": "node reset"
3131
},
3232
"dependencies": {
33-
"@mozilla/readability": "^0.5.0",
33+
"@mozilla/readability": "^0.6.0",
3434
"bellajs": "^11.2.0",
3535
"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"
3838
},
3939
"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",
4344
"https-proxy-agent": "^7.0.6",
44-
"nock": "^14.0.1"
45+
"nock": "^14.0.4"
4546
},
4647
"keywords": [
4748
"article",

0 commit comments

Comments
 (0)