Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ogp-getter

Swordroot10ISC1.1.1TypeScript support: included

get ogp info

ogp

readme

What is this?

A module that observes ogp info on passed url.

Installation

npm install ogp-getter

How to use

JavaScript

var ogpGetter = require("ogp-getter")

ogpGetter.getOGP("https://some.host/url").then(data => console.log(data))

TypeScript

import { getOGP } from "ogp-getter";

const run = async () => {
  const ogpInfo = await getOGP("https://some.host/url");
  console.log(ogpInfo)
}

run();