rog

Retrieve open graph data from passing URL.

MIT License

Downloads
154
Stars
12
Committers
4

rog

Retrieve open graph data by passing URL.

Install

Install rog and its plugins.

$ npm install rog
$ npm install rog-plugin-title

Usage

import {rog} from 'rog';
import {rogTitle} from 'rog-plugin-title';

rog('http://google.com', {
  title: rogTitle
}).then(data => {
  console.log(data.title); // => <meta property="og:title" content="...">
}).catch(error => {
  console.error(error);
});

Packages

License

MIT © Shogo Sensui

Package Rankings
Top 8.94% on Npmjs.org
Badges
Extracted from project README
lerna