Generate link previews with social metadata, For example, social apps can use the metadata to present shared links as cards with a title, a description of the linked content, and a preview image.
Installation
$ npm i --save opensource-link-previewer
In Node.js
// CommonJS
var LinkPreviewer =require("opensource-link-previewer");
// Load the link previewer
constlink=newLinkPreviewer();
link.preview("https://web.whatsapp.com")
.then((response)=>{
/*
Response is look like:
[ { title: 'WhatsApp Web' },
{ description: 'Quickly send and receive WhatsApp messages right from your computer.' },
{ 'og:description': 'Quickly send and receive WhatsApp messages right from your computer.' },