Skip to content

aanchal641/link-previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": ""
    }
}

About

Generates the preview of the provided url. Returns og and twitter tags alongwith website title,description

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published