get-meta
v1.0.1
Published
Returns meta information for the given url
Downloads
4
Readme
get-meta
Returns meta information for the given url
user
let getMeta = require('get-meta');
getMeta({ url: 'https://github.com' }).then(console.log)
{
icon: 'https://assets-cdn.github.com/favicon.ico',
title: 'The world’s leading software development platform · GitHub1clr-code-hosting',
image: 'https://assets-cdn.github.com/images/search-shortcut-hint.svg',
charset: 'utf-8',
name: 'theme-color',
content: '#1e2327',
property: 'og:image:height',
'data-pjax-transient': '',
value: '/',
class: 'js-ga-set',
'http-equiv': 'x-pjax-version',
}