@alexlit/vue-console-log

    0.1.0 • Public • Published

    Vue Console Log

    Plugin and mixin that adds a $log method for logging to the console

    Connection

    import Vue from 'vue';
    
    import VueConsoleLogPlugin, {
      vueConsoleLogMixin,
    } from '@alexlit/vue-console-log';
    
    export { vueConsoleLogMixin };
    
    Vue.use(VueConsoleLogPlugin, {
      isEnabled: process.env.NODE_ENV === 'development', // optional
      color: '#000', // optional
    });

    Usage

    MyComponent.$log('hello'); // <my-component> hello

    Install

    npm i @alexlit/vue-console-log

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.77 kB

    Total Files

    6

    Last publish

    Collaborators

    • alex-lit