mirror of https://github.com/vx3r/wg-gen-web.git
12 lines
175 B
JavaScript
12 lines
175 B
JavaScript
|
import Vue from 'vue'
|
||
|
const isCidr = require('is-cidr');
|
||
|
|
||
|
const plugin = {
|
||
|
install () {
|
||
|
Vue.isCidr = isCidr;
|
||
|
Vue.prototype.$isCidr = isCidr
|
||
|
}
|
||
|
};
|
||
|
|
||
|
Vue.use(plugin);
|