加入CODE CHINA

· 不限速    · 不限空间    · 不限人数    · 私仓免费

免费加入
    README.md

    English | 简体中文

    vConsole

    npm version

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

    Features

    • View console logs
    • View network requests
    • View document elements
    • View Cookies, LocalStorage and SessionStorage
    • Execute JS command manually
    • Custom plugin

    Installing

    Using unpkg CDN:

    <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script>

    Usage

    Method 1: Using npm (Recommanded)

    $ npm install vconsole
    import VConsole from 'vconsole';
    
    const vConsole = new VConsole();
    // or init with options
    const vConsole = new VConsole({ maxLogNumber: 1000 });
    
    // call `console` methods as usual
    console.log('Hello world');
    
    // remove it when you finish debugging
    vConsole.destroy();

    Method 2: Using unpkg CDN in HTML:

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

    See Tutorial for more usage details.

    Preview

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

    Documentation

    vConsole:

    Plugin:

    Third-party Plugins

    Changelog

    CHANGELOG.md

    Feedback

    QQ Group: 497430533

    License

    The MIT License

    项目简介

    🚀 Github 镜像仓库 🚀

    源项目地址

    https://github.com/Tencent/vconsole

    发行版本 31

    v3.6.1

    全部发行版

    贡献者 53

    全部贡献者

    开发语言

    • JavaScript 47.0 %
    • HTML 21.5 %
    • TypeScript 20.1 %
    • Less 10.3 %
    • PHP 0.8 %