Socket
Socket
Sign inDemoInstall

@extractus/feed-extractor

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extractus/feed-extractor - npm Package Compare versions

Comparing version 6.3.0 to 7.0.0

deno.json

4

eval.js
// eval.js
// to quickly test with a single url or file
import { read } from './src/main.js'
import { extract } from './src/main.js'

@@ -9,3 +9,3 @@ const run = async (url) => {

console.time('extract-feed')
const feed = await read(url)
const feed = await extract(url)
console.log(feed)

@@ -12,0 +12,0 @@ console.timeEnd('extract-feed')

{
"version": "6.3.0",
"version": "7.0.0",
"name": "@extractus/feed-extractor",

@@ -14,3 +14,6 @@ "description": "To read and normalize RSS/ATOM/JSON feed data",

"imports": {
"cross-fetch": "./src/deno/cross-fetch.js"
"cross-fetch": "./src/deno/cross-fetch.js",
"html-entities": "https://esm.sh/html-entities@2.4.0",
"fast-xml-parser": "https://esm.sh/fast-xml-parser@4.2.5",
"bellajs": "https://esm.sh/bellajs@11.1.2"
},

@@ -40,4 +43,4 @@ "browser": {

"eslint": "^8.44.0",
"https-proxy-agent": "^7.0.0",
"jest": "^29.6.0",
"https-proxy-agent": "^7.0.1",
"jest": "^29.6.1",
"nock": "^13.3.1"

@@ -44,0 +47,0 @@ },

@@ -26,11 +26,4 @@ # feed-extractor

```ts
// es6 module
import { extract } from '@extractus/feed-extractor'
// CommonJS
const { extract } = require('@extractus/feed-extractor')
// you can specify exactly path to CommonJS version
const { extract } = require('@extractus/feed-extractor/dist/cjs/feed-extractor.js')
// extract a RSS

@@ -54,3 +47,3 @@ const result = await extract('https://news.google.com/rss')

```ts
import { extract } from 'https://unpkg.com/@extractus/feed-extractor@latest/dist/feed-extractor.esm.js'
import { extract } from 'https://esm.sh/@extractus/feed-extractor'
```

@@ -359,4 +352,4 @@

cd feed-extractor
npm i
npm test
pnpm i
pnpm test
```

@@ -372,5 +365,4 @@

cd feed-extractor
npm install
npm run eval https://news.google.com/rss
pnpm i
pnpm eval https://news.google.com/rss
```

@@ -377,0 +369,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc