Vue bratach

Feature flags for Vue

Version: 1.1.0 Updated: 10/08/2019

By: nicksnell License: MIT

Downloads Last 30 Days: 17

Install

npm i vue-bratach
yarn add vue-bratach

Repository: https://github.com/nicksnell/vue-bratach

CDNs

bundle.run: https://bundle.run/vue-bratach

jsDelivr: https://cdn.jsdelivr.net/npm/vue-bratach

unpkg: https://unpkg.com/vue-bratach

Vue-Bratach

Deadly simple feature flags for vue.

Usage:

import Vue from 'vue'

Vue.use(VueBratach, {flags: {
  myFeature: true,
  myOtherFeature, false
}})

Then inside components you can:

if (this.$featureFlags.getFlag('myFeature')) {
  // Turn my feature on....
}

"Bratach" - is the Gaeilge word for "Flag"

Categories: Vue js
Tags: