@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    13
  • 0.0.1
    0

Package Sidebar

Install

npm i @alexlit/vue-console-log

Weekly Downloads

13

Version

0.1.0

License

MIT

Unpacked Size

4.77 kB

Total Files

6

Last publish

Collaborators

  • alex-lit