ogparser

1.0.0 • Public • Published

ogparser

Node.js module for parsing Open Graph meta-tags from URL

Dependencies

  • bluebird
  • cheerio
  • request-promise

Installation

npm install ogparser

Usage

const OGParser = require('ogparser');
 
async function getOG(url) {
  return await OGParser.parse(url);
}

Ouput

{
  site_name: 'Example',
  type: 'article',
  image: {
    image: 'https://example.com/images/kittens.jpg',
    width: '480',
    height: '320'
  },
  title: 'Funny kittens',
  description: 'Watch this funniest kittens!',
  url: 'https://example.com/articles/funny_kittens'
}

Links

The Open Graph protocol documentation.

Readme

Keywords

Package Sidebar

Install

npm i ogparser

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • saintgeo23