New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-network-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-network-plugin

Notifies your app and users when your network goes offline and back online

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

vue-network

A vue plugin that notifies your app and users when the network goes offline and back online.

Features

Displays message to users as a notification, and disappears the the network is back online.;

Screenshot

Provides a global variable to help you figure out if you app is offline within your vue component;

function getData() {
    if(this.$isOnline) {
        fetch();
    }else {
        return;
    }
}

How to install the plugin

npm install vue-network-plugin --save

How to use

1.import the plugin in your main.js file

import VueNetwork from "vue-network-plugin" Vue.use(VueNetwork)

2.you can also disable the notification by passing a "displayNotification" parameter, by default the notification is displayed

Vue.use(VueNetwork, {displayNotification: false})

#TODO

Bundle the plugin using webpack. (please if you have any experience using webpack you can help out)

Twitter @codebyomar

Keywords

vue plugin

FAQs

Package last updated on 20 Feb 2018

Did you know?

Socket

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.

Install

Related posts