vue-bows

1.0.8 • Public • Published

vue-bows

Vue.js plugin for clear and understandable console logs.
It displays nice logs based on the component written. It makes your logs clear and organized.

Installation

yarn add https://github.com/wearelucid/vue-bows.git#1.0.8

Integration & Usage

// import
import Vue from 'vue'
import Log from 'vue-bows'

Vue.use(Log)
// You are now able to use it in your components in your Project. Like this:

export default {
  name: 'MyComponent',
  data: () => ({
    variable: 'foo'
  }),
  mounted () {
    this.log('string') // logs "MyComponent // string"
    this.log(this.variable) // logs "MyComponent // foo"
    this.log('string', this.variable) // logs "MyComponent // string, foo"
  }
}

Integration with Nuxt.js

// Create following file in your plugins folder. and Add
'plugins/vue-bows.js'

// Then add the plugin to your 'nuxt.config.js'
plugins: [
  '~/plugins/vue-bows'
]

/vue-bows/

    Package Sidebar

    Install

    npm i vue-bows

    Weekly Downloads

    1

    Version

    1.0.8

    License

    MIT

    Last publish

    Collaborators

    • marcoeh
    • fabianellenberger
    • d-simon