opengrapher
v1.0.2
Published
A Node module to parse opengraphs of a webpage
Downloads
31
Readme
opengrapher
A Node module to parse opengraphs of a webpage
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.'
}