Skip to content

1000ch/rog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rog

Retrieve open graph data by passing URL.

GitHub Actions Status lerna

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