Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lucien144/vue-dump-filter

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

@lucien144/vue-dump-filter

Tiny logger for Vue.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Dump filter for Vue

🐞 Tiny logger for Vue you can use in templates.

Installation

$ npm i @lucien144/vue-dump-filter

Usage

You can use it as a Vue filter: |dump

// component.vue
<template>
	{{ title|dump }}
</template>

Additionally you can use it as a Vue instance method $dump()

// component.vue
<template>
	<input type=text @keyup="$dump">
</template>
<script>
export default {
	methods: {
		login(username) {
			this.$dump(username);
		}
	}
}
</script>

What's the difference between console.log?

  1. You can't use console.log in the template section of single file components.
  2. When dumping reactive objects using console.log all values are usually hidden behind .... You also output all getters and setters. The $dump dumps plain object:

console.log

http://144.wtf/NrCSHF+

this.$dump

http://144.wtf/VvpDmk+

Keywords

FAQs

Package last updated on 31 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc