Skip to content
Retrieve open graph data from passing URL.
JavaScript
Find file
Latest commit e16f149 @1000ch Update README
Failed to load latest commit information.
packages Check url is datauri or not
test Add images plugin
.gitignore pluggable & monorepo
.travis.yml initial commit
index.js Add images plugin
package.json 2.0.1
readme.md Update README

readme.md

rog Build Status Dependency Status

Retrieve open graph data from passing URL.

Installation

Install rog and its plugins.

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

Usage

const rog = require('rog');

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

Plugins

License

MIT: http://1000ch.mit-license.org

Something went wrong with that request. Please try again.