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.
- Host: GitHub
- URL: https://github.com/1000ch/rog
- Owner: 1000ch
- License: mit
- Created: 2015-11-19T10:03:06.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T11:28:26.000Z (over 3 years ago)
- Last Synced: 2025-03-01T06:15:11.919Z (over 1 year ago)
- Topics: nodejs, opengraph
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/rog
- Size: 2.3 MB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# rog
Retrieve open graph data by passing URL.

[](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)