vconsole
A lightweight, extendable front-end developer tool for mobile web page.
Last updated 3 years ago by maiz .
MIT · Repository · Bugs · Original npm
$ cnpm install vconsole 
SYNC missed versions from official npm registry.

English | 简体中文

vConsole

A lightweight, extendable front-end developer tool for mobile web page.

vConsole is framework-free, you can use it in Vue or React or any other framework application.

Now vConsole is the official debugging tool for WeChat Miniprograms.


Features

  • Logs: console.log|info|error|...
  • Network: XMLHttpRequest, Fetch, sendBeacon
  • Element: HTML elements tree
  • Storage: Cookies, LocalStorage, SessionStorage
  • Execute JS command manually
  • Custom plugins

For details, please see the screenshots below.


Release Notes

Latest version: npm version

Detailed release notes for each version are available on Changelog.


Guide

See Tutorial for more usage details.

For installation, there are 2 primary ways of adding vConsole to a project:

Method 1: Using npm (Recommended)

$ npm install vconsole
import VConsole from 'vconsole';

const vConsole = new VConsole();
// or init with options
const vConsole = new VConsole({ theme: 'dark' });

// call `console` methods as usual
console.log('Hello world');

// remove it when you finish debugging
vConsole.destroy();

Method 2: Using CDN in HTML:

<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
  // VConsole will be exported to `window.VConsole` by default.
  var vConsole = new window.VConsole();
</script>

Available CDN:


Preview

http://wechatfe.github.io/vconsole/demo.html


Screenshots

Overview

<summary>Light theme</summary>

<summary>Dark theme</summary>

Log Panel

<summary>Log styling</summary>

<summary>Command line</summary>

System Panel

<summary>Performance info</summary>

<summary>Output logs to different panel</summary>
console.log('output to Log panel.')
console.log('[system]', 'output to System panel.')

Network Panel

<summary>Request details</summary>

Element Panel

<summary>Realtime HTML elements structure</summary>

Storage Panel

<summary>Add, edit, delete or copy Cookies / LocalStorage / SessionStorage</summary>


Documentation

vConsole:

Custom Plugin:


Third-party Plugins


Feedback

QQ Group: 497430533


License

The MIT License

Current Tags

  • 3.14.6                                ...           latest (3 years ago)

2 Versions

  • 3.14.6                                ...           3 years ago
  • 3.3.4                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org