fetch-opengraph
Advanced tools
Weekly downloads
Readme
Fetch opengraph information from an url.
npm install fetch-opengraph --save
or
yarn add fetch-opengraph
Just a basic index.js running node .
const fetchOpengraph = require('fetch-opengraph');
(async () => {
const data = await fetchOpengraph.fetch('https://github.com/purphoros/fetch-opengraph');
console.log(data)
})()
Running in a web environment
import { fetch } from 'fetch-opengraph';
(async () => {
const data = await fetch('https://github.com/purphoros/fetch-opengraph');
console.log(data)
})()
{
description: 'Fetch opengraph information from an url.',
'twitter:image:src': 'https://avatars.githubusercontent.com/u/4297636?s=400&v=4',
'twitter:card': 'summary',
'twitter:title': 'purphoros/fetch-opengraph',
'twitter:description': 'Fetch opengraph information from an url.',
'og:image': 'https://avatars.githubusercontent.com/u/4297636?s=400&v=4',
'og:type': 'object',
'og:title': 'purphoros/fetch-opengraph',
'og:url': 'https://github.com/purphoros/fetch-opengraph',
'og:description': 'Fetch opengraph information from an url.',
image: 'https://avatars.githubusercontent.com/u/4297636?s=400&v=4',
url: 'https://github.com/purphoros/fetch-opengraph'
}
FAQs
Fetch opengraph information from an url
The npm package fetch-opengraph receives a total of 503 weekly downloads. As such, fetch-opengraph popularity was classified as not popular.
We found that fetch-opengraph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.