1.0.1 • Published 6 years ago

get-meta v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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