New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-debug

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-debug

A Vue.js plugin for debug helpers

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

vue-debug

A Vue.js plugin for debug helpers.

How to use

1. Install the plugin.

With npm: npm i vue-debug --save

2. Mount

var vueDebug = require('vue-debug')
Vue.use('vue-debug')

If you use component(1), you can directly Vue.use('vue-debug'). Check the Vue.js documentation about plugins for more information.

Helpers list

Vue.log()

Like console.log but only logs properties from the $data object, without any $get or $set method. Thus, trying to log the vm itself will only log its $data.

If you need to log a VM internal such as $compiler, use the regular console.log.

Example:

var vm = new Vue({
    el: 'body',
    data: {
        foo: 'bar',
        bar: 10
    },
    ready: function() {
        Vue.log(this.foo, this);
        // output: 'bar', Object { foo: 'bar', bar: 10}
    }
});

Contributing

Please feel free to fork and add your own helpers !

History

v0.0.1 Vue.log method

Keywords

vue

FAQs

Package last updated on 29 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts