bmeta
v1.1.4
Published
HTML meta tag access
Downloads
2
Readme
bmeta
HTML meta tag access
Installation
$ npm install bmeta --save
Usage
'use strict'
const { canonical } = require('bmeta')
// Get canonical path
console.log(canonical())
// Set canonical path
canonical.set('/cars/1/wheels')
Functions
Available functions
| Signature | Description |
| ---- | ----------- |
| canonical(href)
| Set canonical path |
| ogp(values)
| Set OGP settings |
| title(titleText)
| Set title |
| twitter(values)
| Set twitter card settings |
License
This software is released under the MIT License.