0.1.9 • Published 8 years ago

ogp-meta v0.1.9

Weekly downloads
33
License
MIT
Repository
github
Last release
8 years ago

ogp-meta

version download

Generate open graph meta tags.

js-standard-style

Usage

var OpenGraph = require('../')

var ogp = new OpenGraph()

ogp.title('title')
ogp.type('website')
ogp.description('description')
ogp.site_name('site_name')
ogp.url('http://ogp-meta.npm')
ogp.image('http://image url')
// reset
ogp.image(null)
ogp.image({
  url: 'http://image url',
  width: 400,
  height: 400
})
ogp.video('http://video url')
// reset
ogp.video(null)
ogp.video({
  url: 'http://video url',
  width: 1024,
  height: 720
})
ogp.app({
  url: 'example://app',
  app_store_id: 'app_store_id',
  app_name: 'app_name'
}, 'ios')
ogp.app({
  url: 'example://app',
  package: 'com.ogp-meta.app',
  app_name: 'app_name'
}, 'android')

console.log(ogp.toHTML())

LICENSE

ogp-meta is licensed under the MIT license.

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.0

9 years ago