opengrapher

1.0.2 • Public • Published

opengrapher

A Node module to parse opengraphs of a webpage

Build Status

How To Install

npm install opengrapher

How To Use

var opengrapher = require('opengrapher');
 
opengrapher.parse('http://ogp.me/', function(err, og) {
    if (err) throw err;
    console.log(og);
});

output:

{ 
  title: 'Open Graph protocol',
  type: 'website',
  url: 'http://ogp.me/',
  image: 'http://ogp.me/logo.png',
  'image:type': 'image/png',
  'image:width': '300',
  'image:height': '300',
  description: 'The Open Graph protocol enables any web page to become a rich object in a social graph.'
}

Package Sidebar

Install

npm i opengrapher

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • z4r