@vt7/log-proxy
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Vue3 Log Proxy

A repo easy log proxy for Vue 3

Getting Started

$ yarn add @vt7/log-proxy

Setup

import { createApp } from 'vue'
import router from './router'
import App from './App.vue'
import '@vt7/log-proxy'

const app = createApp(App)

app.mount('#app')
<template>
  <div>
    {{ state }}
  </div>
</template>

<script setup>
import { reactive } from "vue";

const state = reactive({ a: 1 })

console._log('old log state', state)
console.log('new log state', state)

// old log state Proxy{a: 1}
//       [[Handler]]: Object
//       [[Target]]: Object
//       [[IsRevoked]]: false


// new log state {a: 1}
</script>

Readme

Keywords

Package Sidebar

Install

npm i @vt7/log-proxy

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.81 kB

Total Files

4

Last publish

Collaborators

  • vt7