New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metascraper

Package Overview
Dependencies
Maintainers
1
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metascraper - npm Package Compare versions

Comparing version 0.2.6 to 1.0.0

4

History.md
1.0.0
-----
- no changes
0.2.6

@@ -3,0 +7,0 @@ -----

2

package.json
{
"name": "metascraper",
"description": "A library to easily scrape metadata from an article on the web using Open Graph metadata, regular HTML metadata, and series of fallbacks.",
"version": "0.2.6",
"version": "1.0.0",
"repository": "git://github.com/ianstormtaylor/metascraper.git",

@@ -6,0 +6,0 @@ "main": "./lib/index.js",

@@ -17,2 +17,3 @@

- [Comparison](#comparison)
- [Installation](#installation)
- [Server-side Usage](#server-side-usage)

@@ -70,3 +71,2 @@ - [Browser-side Usage](#browser-side-usage)

## Comparison

@@ -82,7 +82,16 @@

A big part of the reason for **Metascraper**'s better performance is that it relies on a series of fallbacks for each piece of metadata, instead of just looking for the most commonly-used, spec-compliant pieces of metadata, like Open Graph. **Metascraper**'s default settings are targetted specifically at parsing online articles, which is why it's able to be more highly-tuned than the other libraries for that purpose.
A big part of the reason for **Metascraper**'s higher accuracy is that it relies on a series of fallbacks for each piece of metadata, instead of just looking for the most commonly-used, spec-compliant pieces of metadata, like Open Graph. **Metascraper**'s default settings are targetted specifically at parsing online articles, which is why it's able to be more highly-tuned than the other libraries for that purpose.
If you're interested in the breakdown by individual pieces of metadata, check out the [full summary](/support/comparison), or dive into the [raw result data for each library](/support/comparison/results).
If you're interested in the breakdown by individual pieces of metadata, check out the [full comparison summary](/support/comparison), or dive into the [raw result data for each library](/support/comparison/results).
## Installation
Simply install with [`npm`](https://www.npmjs.com/):
```
npm install metascraper
```
## Server-side Usage

@@ -89,0 +98,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