Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
product-info
Advanced tools
Extracts limited product information for a given web page.
Current implementation is crude with generic (non-schema.org) websites
being limited to only name
and price
information.
When a URL is provided the page is opened in jsdom,
and is set to fetch and process external script
tags. To skip this pass in the
HTML of the page instead.
npm install product-info
A javascript object is returned with a similar structure to the schema.org product schema; however, canonical references were removed.
// Returned
{
name: 'Blue Shirt',
description: 'A blue colored shirt',
offers: {
price: '20.00',
priceCurrency: 'USD',
availability: 'InStock'
}
}
Method for parsing HTML into a product.
producer.parse('http://my-schema-url.org', function(err, product){
// product returned
});
Method for parsing a URL into a product. Waits until all external script tags are fetched and have run.
producer.parse('http://my-schema-url.org', function(err, product){
// product returned
});
FAQs
Extracts product information from web pages
The npm package product-info receives a total of 2 weekly downloads. As such, product-info popularity was classified as not popular.
We found that product-info 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.