metaset
v2.0.1
Published
Inject meta tag to head
Downloads
8
Maintainers
Readme
metaset
This tiny library provides some functions for managing meta tag in your HTML document
Installation
npm install --save metaset
Usage
import Metaset from 'metaset'
const metaset = new Metaset();
// Set title
metaset.setTitle('The title');
// Get title
metaset.getTitle(); //The title
// Set meta tag description
metaset.setMetaName('description', 'A description...');
// Get metatag description
metaset.getMetaName('description'); //A description...
// Set OG meta tag
metaset.setMetaProperty('og:description', 'A description...');
// Get OG meta tag
metaset.getMetaProperty('og:description'); //A description...
Changelog
You can view the changelog here
License
Metaset is open-sourced software licensed under the MIT license
Author
Fabio Ricali