get-meta

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i get-meta

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.63 kB

Total Files

6

Last publish

Collaborators

  • cond