meta-setter
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "meta-setter", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Singleton Object to dynamically update document meta tags in client side applications. WIP", | ||
@@ -5,0 +5,0 @@ "main": "dist/meta-setter.min.js", |
@@ -42,2 +42,17 @@ # MetaSetter | ||
### updateMetaTags `MetaSetter.updateMetaTags(obj)` | ||
Updates the document meta tags that are passed through the spec object. Typically from a model or a object literal created on the fly on 'static pages'. | ||
```javascript | ||
var MetaSetter = require('meta-setter'); | ||
MetaSetter.updateMetaTags({ | ||
'title': 'My Awesome Title', | ||
'og:title': 'Open Graph Title', | ||
'og:description': 'Open Graph Description', | ||
... etc | ||
}); | ||
``` | ||
### reset `MetaSetter.reset()` | ||
@@ -44,0 +59,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8025
70