
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
This project helps you to read the content of URLs, and return the title, length, html, text, markdown, excerpt.
"node": ">=20.11.0"
yarn add url-reader
# or npm install url-reader
import URLReader from 'url-reader';
const reader = new URLReader();
await reader.init();
const results = await reader.read({
urls: ['https://www.google.com'],
timeout: 10000, // ms, default: 60000
enableMarkdown: false, // default: true
runScripts: 'dangerously', // run the scripts included in the HTML and fetch remote resources, default is closed.
});
Parsed Result:
interface IReaderResult {
title: string;
length: number;
html: string;
text: string;
markdown?: string;
excerpt: string;
}
git clone https://github.com/yokingma/url-reader.git
cd url-reader
# default listen on port 3030
yarn install & yarn run start
GET /reader?url=https://www.google.com
POST /reader
Body:
{
urls: ['https://www.google.com', 'https://www.bing.com']
}
docker build -t urlreader . # urlreader is your image's tag name
The service will listen on port 3030
.
Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames...
remove .npmrc file and re-install.
FAQs
Convert your URLs to JSON/Markdown/Text format.
The npm package url-reader receives a total of 1 weekly downloads. As such, url-reader popularity was classified as not popular.
We found that url-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.