You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
liudan
3027dcd3a8
|
2 years ago | |
---|---|---|
.. | ||
build | 2 years ago | |
dist | 2 years ago | |
CHANGELOG.md | 2 years ago | |
CHANGELOG_CN.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
README_CN.md | 2 years ago | |
package.json | 2 years ago |
README.md
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
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:
- https://unpkg.com/vconsole@latest/dist/vconsole.min.js
- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js
Preview
http://wechatfe.github.io/vconsole/demo.html
Screenshots
Overview
Log Panel
System Panel
Output logs to different panel
console.log('output to Log panel.')
console.log('[system]', 'output to System panel.')
Network Panel
Element Panel
Storage Panel
Documentation
vConsole:
Custom Plugin:
Third-party Plugins
- vConsole-sources
- vconsole-webpack-plugin
- vconsole-stats-plugin
- vconsole-vue-devtools-plugin
- vconsole-outputlog-plugin
- vite-plugin-vconsole
Feedback
QQ Group: 497430533