link-previewer
v1.0.0
Published
Generates the preview of the provided url. Returns og and twitter tags alongwith website title,description
Downloads
3
Readme
link-previewer
Generates the preview of the provided url. Returns og and twitter tags alongwith website title,description
Getting Started
npm install link-previewer
How to use
const linkPreviewer = require("link-previewer");
const url = "https://one9x.com";
( async () => {
const result = await linkPreviewer.generatePreview(url);
console.log(result)
}
)();
{
"title": "Welcome to One9x | One9x",
"name": "",
"description": "Website of One9x organization",
"og": {
"title": "Welcome to One9x",
"image": "",
"description": "Website of One9x organization",
"url": "http://one9x.com/",
"site_name": "One9x"
},
"twitter": {
"title": "",
"image": "",
"description": "",
"url": ""
}
}