vue-unicorn-log
v1.0.8
Published
A magical 🦄 plugin to make coloring the console output easier and more flexible.
Downloads
48
Maintainers
Readme
Description
Sometimes when building your application/site you don't want to see your linter complaining about using console functions. This helps to keep your linter happy so you can concentrate on writing bug free magical code.
It also has the ability to run the console functions depending on environment variables so you can keep your production site's console quiet.
Installation
Using pnpm:
pnpm add vue-unicorn-log
Using npm:
npm i vue-unicorn-log
Documentation & Examples
Usage
import Vue from 'vue';
import UnicornLog from 'vue-unicorn-log';
Vue.use(UnicornLog);
Instance Methods
There are two instance methods available to use.
$unicornLog
$uniLog
Console Methods
For a description of the different log methods, refer to the Web APIs | MDN developer documentation for console.
Simple Example
this.$unicornLog({
text: 'Hello World',
});
For more examples, see Documentation & Examples.
Dependencies
Change Log
License
Copyright (c) 2022 WebDevNerdStuff
Licensed under the MIT license.