@dannyfranca/vue-handsome-helpers
v0.4.0
Published
js-handsome-helpers to Vue Global Scope
Downloads
4
Readme
@dannyfranca/vue-handsome-helpers
Implementation of @dannyfranca/vue-handsome-helpers for Vue
Install
npm install @dannyfranca/vue-handsome-helpers
Usage
// register globally
import Vue from 'vue'
import helpers from '@dannyfranca/vue-handsome-helpers'
Vue.use(helpers)
// to change scope name
Vue.use(helpers, {scope: 'customName'})
Helpers will be available in global instance
const opt = this.$helpers.optionsFromString('x:foo|y:bar')
console.log(opt) // { x: 'foo', y: 'bar' }
Methods
Check the methods in the original repository.
License
Copyright (c) Danny França [email protected]