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

console-for-proxy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-for-proxy

Vue3.0 之后,生命的 ref 对象、数组都是经过代理的,那如果使用 console.log 输出的为代理后的对象,不利于在控制台查看。所以本仓库修改原始

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Vue3.0 之后,生命的 ref 对象、数组都是经过代理的,那如果使用 console.log 输出的为代理后的对象,不利于在控制台查看。所以本仓库修改原始

console,增加了 console.vlog 方法,解决此问题。

Usage

在 main.js 初始化

import { initConsole } from 'console-for-proxy'

initConsole()

在组件内使用

import { ref } from 'vue'

const detail = ref({ name: 'console-for-proxy' })

console.vlog(detail)

Keywords

console

FAQs

Package last updated on 01 May 2023

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