Simple metadata scrapper.
yarn add meta-fetcher
import metaFetcher from 'meta-fetcher';
const result = await metaFetcher('https://hoppscotch.io/');
console.log(result);
Output:
{
"title": "Hoppscotch - Open source API development ecosystem",
"description": "Helps you create requests faster, saving precious time on development.",
"image": "https://hoppscotch.io/og.png",
"url": "https://hoppscotch.io/",
"siteName": "Hoppscotch",
"type": "website"
}
Takes one url string as a parameter and returns an object containing the meta-information.
type: string
default: 'none'
The url string to be scrapped.
page-scrapper: Node.js scrapper that pulls out all links and images of a given site.
2024 MIT © Rocktim Saikia