rog-plugin-title

Title plugin for rog


Keywords
ogp, opengraph, meta, twitter, facebook, nodejs
License
MIT
Install
npm install rog-plugin-title@5.0.1

Documentation

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