1.0.2 • Published 10 years ago

opengrapher v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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.'
}