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.
npm i vue-unicorn-log
import Vue from 'vue';
import UnicornLog from 'vue-unicorn-log';
Vue.use(UnicornLog);
There are two instance methods available to use.
$unicornLog
$uniLog
For a description of the different log methods, refer to the Web APIs | MDN developer documentation for console.
this.$unicornLog({
text: 'Hello World',
});
For more examples, see Documentation & Examples.
Copyright (c) 2022 WebDevNerdStuff
Licensed under the MIT license.