@extractus/feed-extractor
Advanced tools
Comparing version 6.3.0 to 7.0.0
// 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59051
25
1515
5
370