1.1.4 • Published 7 years ago
bmeta v1.1.4
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.