An open API service indexing awesome lists of open source software.

https://github.com/1000ch/rog

Retrieve open graph data from passing URL.
https://github.com/1000ch/rog

nodejs opengraph

Last synced: 9 months ago
JSON representation

Retrieve open graph data from passing URL.

Awesome Lists containing this project

README

          

# rog

Retrieve open graph data by passing URL.

![GitHub Actions Status](https://github.com/1000ch/rog/workflows/test/badge.svg?branch=master)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

## Install

Install `rog` and its plugins.

```bash
$ npm install rog
$ npm install rog-plugin-title
```

## Usage

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

rog('http://google.com', {
title: rogTitle
}).then(data => {
console.log(data.title); // =>
}).catch(error => {
console.error(error);
});
```

## Packages

- [`rog`](packages/rog): core package
- [`rog-plugin-description`](packages/rog-plugin-description): a plugin to analyze `` and others.
- [`rog-plugin-image`](packages/rog-plugin-image): a plugin to analyze `` and others.
- [`rog-plugin-images`](packages/rog-plugin-images): a plugin to analyze ``s written in ``.
- [`rog-plugin-locale`](packages/rog-plugin-locale): a plugin to analyze ``.
- [`rog-plugin-sitename`](packages/rog-plugin-sitename): a plugin to analyze `` and others.
- [`rog-plugin-title`](packages/rog-plugin-title): a plugin to analyze `` and others.
- [`rog-plugin-type`](packages/rog-plugin-type): a plugin to analyze ``.
- [`rog-plugin-url`](packages/rog-plugin-url): a plugin to analyze `` and others.

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)