url-preview
v1.1.1
Published
Package returns meta data of your url.
Downloads
4
Maintainers
Readme
This package fetches meta-data of your url to display your url preview.
Example usage:
import { urlPreview } from 'url-preview'; //import library
. . .
urlPreview(<your-url>).then(data => console.log(data));
Example response:
urlPreview("gogoapps.io").then(data => console.log(data));
{
msapplication-TileColor: "#ffffff"
msapplication-TileImage: "/ms-icon-144x144.png"
og:description: "GogoApps has helped 70+ SMBs,Startups and Educational Institutions create world-class applications and design."
og:image: "https://gogoapps.io/static/other/thumbnail.png"
og:title: "GogoApps"
og:type: "website"
og:url: "https://gogoapps.io/"
theme-color: "#ffffff"
viewport: "width=device-width, initial-scale=1.0 maximum-scale=1.0"
}
Ready for usage with url below:
http://jukebox.vote/v1/scrapUrl?url=<your-url>
http://jukebox.vote/v1/scrapUrl?url=gogoapps.io