🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

metadata-fetch

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metadata-fetch - npm Package Compare versions

Comparing version

to
2.0.1

8

package.json
{
"name": "metadata-fetch",
"version": "2.0.0",
"version": "2.0.1",
"description": "This package is used to fetch the metadata of given url or site with help of cheerio.",

@@ -9,3 +9,3 @@ "main": "./dist/index.js",

"homepage": "https://metadata-fetcher.vercel.app/",
"repository": {
"repository": {
"type": "git",

@@ -26,2 +26,3 @@ "url": "git+https://github.com/Abhii5496/metadata-fetcher.git"

"devDependencies": {
"@types/node": "^22.15.29",
"tsup": "^8.1.0",

@@ -31,5 +32,4 @@ "typescript": "^5.5.2"

"dependencies": {
"cheerio": "^1.0.0-rc.12",
"metadata-fetch": "^1.0.2"
"metadata-fetch": "^1.1.2"
}
}
# Metadata Fetcher & Scraper [🌐](https://metadata-fetcher.vercel.app/)
metadata-fetch is a lightweight JavaScript library that fetches and extracts/scrape essential
metadata (Open Graph, Twitter Cards, favicons, canonical URLs, and SEO tags) from any webpage URL —
**metadata-fetch** is a lightweight JavaScript library that fetches and extracts/scrapes essential
metadata (Open Graph, Twitter Cards, favicons, canonical URLs, and SEO tags) from any webpage URL —
perfect for generating rich link previews and auditing SEO data with ease.

@@ -10,2 +11,13 @@

## ✨ Features
- ✅ Fetch Open Graph tags (`og:title`, `og:image`, etc.)
- ✅ Parse Twitter Card metadata (`twitter:title`, `twitter:image`, etc.)
- ✅ Parse Facebook metadata (`og:title`, `og:image`, etc.)
- ✅ Extract favicon, canonical URL, charset, and theme color
- ✅ SEO-friendly output for integration into UIs or dashboards
- ✅ Fully async and promise-based
---
## 🚀 Installation

@@ -41,29 +53,30 @@

{
"success": true,
"data": {
"id": "f9e65b3e-136a-41a1-b3c5-6f80dc66a48a",
"title": "Metadata Fetcher & Scraper Tool | Preview Open Graph & SEO Tags",
"description": "Fetch and visualize website metadata including Open Graph, Twitter Cards, favicons, canonical URLs, and more.",
"keywords": "metadata fetcher,metadata scraper,open graph viewer,twitter card preview,SEO metadata tool,website metadata,link preview generator,social media preview",
"author": null,
"favicon": "/favicon.ico",
"canonical": "https://metadata-fetcher.vercel.app/",
"themeColor": null,
"id": "c6307698-b1ae-497a-b3ce-132ea94ed3b1",
"title": "Tailwind CSS Search Input - Flowbite",
"description": "Use the search input component as a text field to allow users to enter search queries and receive relevant page results available in multiple styles and sizes",
"keywords": null,
"author": "Themesberg",
"favicon": "/docs/android-icon-192x192.png",
"canonical": "https://flowbite.com/docs/forms/search-input/",
"themeColor": "#ffffff",
"charset": "utf-8",
"url": "https://metadata-fetcher.vercel.app",
"image": "https://metadata-fetcher.vercel.app/api/og",
"url": "https://flowbite.com/docs/forms/search-input/",
"image": "https://flowbite.com/docs/images/og-image.png",
"facebook": {
"title": "Metadata Fetcher & Scraper Tool",
"description": "Easily extract and preview Open Graph, Twitter Card, favicon, and canonical metadata from any webpage.",
"image": "https://metadata-fetcher.vercel.app/api/og",
"url": "https://metadata-fetcher.vercel.app",
"type": "website",
"siteName": "Metadata Fetcher"
"title": "Tailwind CSS Search Input - Flowbite",
"description": "Use the search input component as a text field to allow users to enter search queries and receive relevant page results available in multiple styles and sizes",
"image": "https://flowbite.com/docs/images/og-image.png",
"url": "https://flowbite.com/docs/forms/search-input/",
"type": "article",
"siteName": null
},
"twitter": {
"title": "Metadata Fetcher & Scraper Tool",
"description": "Instantly fetch and visualize Open Graph, Twitter Card, and SEO tags from any webpage.",
"image": "https://metadata-fetcher.vercel.app/api/og",
"card": "summary_large_image",
"site": "@Abhii5496",
"creator": "@Abhii5496"
"title": "Tailwind CSS Search Input - Flowbite",
"description": "Use the search input component as a text field to allow users to enter search queries and receive relevant page results available in multiple styles and sizes",
"image": "https://flowbite.com/docs/images/og-image.png",
"card": "summary",
"site": "@",
"creator": "@"
}

@@ -88,13 +101,2 @@ }

## ✨ Features
- ✅ Fetch Open Graph tags (og:title, og:image, etc.)
- ✅ Parse Twitter Card metadata (twitter:title, twitter:image, etc.)
- ✅ Parse Facebook Card metadata (facebook:title, facebook:image, etc.)
- ✅ Extract favicon, canonical URL, charset, and theme color
- ✅ SEO-friendly output for integration into UIs or dashboards
- ✅ Fully async and promise-based
---
## 🌐 Live Demo

@@ -110,2 +112,1 @@

---

@@ -1,8 +0,6 @@

const { getMetadata } = require("metadata-fetch");
const { getMetadata } = require("metadata-fetch")
const GetData = async () =>
await getMetadata("https://flowbite.com/docs/forms/search-input/").then(
(res) => console.log(res)
);
await getMetadata("https://metadata-fetcher.vercel.app/").then(res => console.log(res))
GetData();
GetData()