Skip to content
Merged

7.1.5 #144

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node_version: [18.x, 20.x, 22.x]
node_version: [20.x, 22.x, 23.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -27,32 +27,13 @@ jobs:
PROXY_SERVER: ${{ secrets.PROXY_SERVER }}
run: |
npm install
npm run lint
npm run test

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-18.x,run-20.x,run-21.x"


31 changes: 9 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,33 @@ To read & normalize RSS/ATOM/JSON feed data.
[![npm version](https://badge.fury.io/js/@extractus%2Ffeed-extractor.svg)](https://badge.fury.io/js/@extractus%2Ffeed-extractor)
![CodeQL](https://github.com/extractus/feed-extractor/workflows/CodeQL/badge.svg)
![CI test](https://github.com/extractus/feed-extractor/workflows/ci-test/badge.svg)
[![Coverage Status](https://img.shields.io/coveralls/github/extractus/feed-extractor)](https://coveralls.io/github/extractus/feed-extractor?branch=main)

(This library is derived from [feed-reader](https://www.npmjs.com/package/feed-reader) renamed.)

## Demo

- [Give it a try!](https://extractor-demos.pages.dev/feed-extractor)
- [Example FaaS](https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=feed&url=https://news.google.com/rss)
- [Give it a try!](https://extractus-demo.vercel.app/feed)

## Install & Usage

### Node.js
## Install

```bash
# npm, pnpm, yarn
npm i @extractus/feed-extractor
```

```ts
import { extract } from '@extractus/feed-extractor'

// extract a RSS
const result = await extract('https://news.google.com/rss')
console.log(result)
# bun
bun add @extractus/feed-extractor
```

### Deno
## Usage

```ts
import { extract } from 'npm:@extractus/feed-extractor'
```

### Browser
import { extract } from '@extractus/feed-extractor'

```ts
import { extract } from 'https://esm.sh/@extractus/feed-extractor'
const data = await extract(RSS_URL)
console.log(data)
```

Please check [the examples](https://github.com/extractus/feed-extractor/tree/main/examples) for reference.


## Automate RSS feed extraction with GitHub Actions

[RSS Feed Fetch Action](https://github.com/Promptly-Technologies-LLC/rss-fetch-action) is a GitHub Action designed to automate the fetching of RSS feeds.
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "7.1.4",
"version": "7.1.5",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://extractor-demos.pages.dev",
"homepage": "https://github.com/extractus/feed-extractor",
"repository": {
"type": "git",
"url": "git@github.com:extractus/feed-extractor.git"
Expand Down Expand Up @@ -41,16 +41,17 @@
"dependencies": {
"bellajs": "^11.2.0",
"cross-fetch": "^4.1.0",
"fast-xml-parser": "^4.5.1",
"html-entities": "^2.5.2"
"fast-xml-parser": "^5.2.1",
"html-entities": "^2.6.0"
},
"devDependencies": {
"esbuild": "^0.25.0",
"eslint": "^9.20.0",
"globals": "^15.14.0",
"@eslint/js": "^9.26.0",
"esbuild": "^0.25.3",
"eslint": "^9.26.0",
"globals": "^16.0.0",
"https-proxy-agent": "^7.0.6",
"jest": "^29.7.0",
"nock": "^14.0.1"
"nock": "^14.0.4"
},
"keywords": [
"extractor",
Expand Down
Loading