Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

alex-lit/vue-console-log

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published