get-meta

Returns meta information for the given url


Keywords
get, meta, site, url, metatag
License
MIT
Install
npm install get-meta@1.0.1

Documentation

get-meta

Returns meta information for the given url

Travis Build Status

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',
}