ogp-getter
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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();

/ogp-getter/

    Package Sidebar

    Install

    npm i ogp-getter

    Weekly Downloads

    2

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    5.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • swordroot