npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-log-arsenal

v1.0.8

Published

An arsenal of logging directives to improve the debugging experience of Vue3 applications

Downloads

44

Readme

Vue Log Arsenal

Vue Log Arsenal is a lightweight plugin that equips your Vue 3 app with an arsenal of logging directives for faster, easier debugging.

In many Vue projects, you can end up spending more time than you’d like digging through Devtools to track down a specific piece of data. Or when you’re fixing a bug, you might repeatedly check the value of a property when you’d rather just see it instantly where and when it matters.

Vue Log Arsenal solves that by letting you drop a directive in your template and get the data you need right in the console — no more messy console.log calls scattered through your code.


Directives

| Directive | Description | |-----------|-------------| | v-log | Logs all reactive and computed properties in the component when the element is loaded in the DOM. | | v-log.propertyName | Logs the specified reactive property or computed value when the element is loaded in the DOM. | | v-log-change | Logs all reactive and computed properties whenever a value within the component changes. | | v-log-change.propertyName | Logs the specified property or computed value when its value changes. | | v-log-click | Logs all reactive and computed properties in the component when the element is clicked. | | v-log-click.propertyName | Logs the specified property or computed value when the element is clicked. |


Installation

npm install vue-log-arsenal

Register it in your Vue 3 project:

import { createApp } from 'vue';
import App from './App.vue';
import VueLogArsenal from 'vue-log-arsenal';

createApp(App)
  .use(VueLogArsenal)
  .mount('#app');

Examples

1. v-log-change

You have a totalPrice property that updates whenever items are added or removed from an input in a form:

<input type="number" v-model="inventoryAmount" v-log-change.totalPrice>
<span>{{ totalPrice }}</span>

Now, every time totalPrice updates — whether from adding an item, removing one, or applying a discount — the new value is logged so you can spot the exact moment when something goes wrong.

2. v-log with v-if

Only log the value of selectedUser when a certain condition becomes true.
For example, you might only care about the data when a user has admin privileges:

<div v-if="isAdmin" v-log.selectedUser>
  <p>{{ selectedUser.name }}</p>
</div>

The log will only appear when isAdmin is true and this block is rendered, helping you avoid noisy logs and focus on the states that matter.

3. v-log-click

Log the entire state of a component right before performing an action, such as an AJAX call:

<button v-log-click @click="checkout">
  Checkout
</button>

When clicked, this logs all reactive and computed properties in the component so you can confirm everything is correct before proceeding.

Demo

Vue Log Arsenal in action


Links

Contributing

This project is currently not open to external contributions.
Bug reports and feature requests are welcome via the GitHub issues page.