Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vue-browserupdate with all npm packages installed. Try it out:

var vueBrowserupdate = require("vue-browserupdate")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vue-browserupdate v1.2.0

Vue wrapper for 'browser-update' package


VueJS wrapper for "browser update" package. Used to expose show, click and close events mainly.

Table of Contents


  • npm
  • VueJS
  • Node


$ npm install --save vue-browserupdate

Getting Started

The Vue plugin must be initialized by your vue App. You should import it in your main .js file

import VueBrowserUpdate from 'vue-browserupdate';

Then you just use the plugin by calling the Vue.use method.



You still can pass options to browserupdate when calling the Vue.use method.

Vue.use(VueBrowserUpdate, {
    options: {
        // Your browser update options
        container: document.body,

You can view the full options here:

Pass a test key to enable the testing mode.

Vue.use(VueBrowserUpdate, {
    options: {
        // Your browser update options
    test: true,

The plugin adds to the Vue object the object 'browserUpdate' that includes 3 functions. The onshow, onclick and onclose requires you to pass a function.

Vue.browserUpdate.onshow(() => {
    // The browser update modal is visible...


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free