Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
meta-setter
Advanced tools
Singleton Object to dynamically update document meta tags in client side applications. WIP
Easily and dynamically update document meta tags in clientside applications.
Whenever you require('meta-setter')
it will return the same javascript object in all spots. This is known as the Singleton pattern.
The MetaSetter object is a simple singleton object that has 3 methods: init, updateMetaTags, and Reset. MetaSetter is extremely useful in client side applications, especially when attaching it to a typical Global App Object App.metaSetter = require('meta-setter')
that is usually required in other parts of the application. When required you can easily update the document meta tags by simply passing in a spec object, typically a derived property from a model in the application or an object created on the fly and passed through to the updateMetaTags method on 'static' pages within the application. App.metaSetter.updateMetaTags({});
npm install --save-dev meta-setter
MetaSetter.init(obj)
Initializes the singleton object with a set of default meta tag values
var MetaSetter = require('meta-setter');
MetaSetter.init({
'title': 'Some Default Title',
'og:title': 'Some Default Open Graph Title',
'og:description': 'Default Open Graph Description',
'og:image': 'Default Open Graph Image URL',
'og:url': window.location.host,
'og:type': 'website'
});
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'.
var MetaSetter = require('meta-setter');
MetaSetter.updateMetaTags({
'title': 'My Awesome Title',
'og:title': 'Open Graph Title',
'og:description': 'Open Graph Description',
... etc
});
MetaSetter.reset()
Resets document meta tags back to the original default states.
Created by @imjakechapman.
MIT
FAQs
Singleton Object to dynamically update document meta tags in client side applications. WIP
The npm package meta-setter receives a total of 0 weekly downloads. As such, meta-setter popularity was classified as not popular.
We found that meta-setter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.