npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tv-vconsole

v0.1.1

Published

A lightweight, extendable front-end developer tool for tv web page which extend from vConsole.

Readme

简体中文

TVConsole

npm version

一个轻量、可拓展、针对电视网页的前端开发者调试面板。

特性

  • 继承vConsole V3.3.4所有PC端特性
  • 支持自定义遥控按键,实现不同面板的切换
  • 支持自定义遥控按键,实现面板滚动条的滚动
  • 支持默认开启或者关闭vConsole面板
  • 支持自定义遥控按键,实现面板的显示与隐藏
  • 支持自定义遥控按钮,实现面板的清除日志

上手

下载 TVConsole 的最新版本。(不要直接下载 dev 分支下的 ./tv-vconsole.js

或者使用 npm 安装:

npm install tv-vconsole

vue项目使用:

import TVConsole from 'tv-vconsole';

Vue.use(new TVConsole({
    maxLogNumber: 50, // vConsole 属性
    tvConfig: { // tv-vconsole 扩展的属性
      defaultOpen: false, // 是否默认打开tv-vconsole面板
      triggerOpenKeyCodes: [49, 50, 51, 52, 53], //  触发tv-vconsole面板打开或者关闭触发按键码
      scrollUpKeyCode: 56, // 触发tv-vconsole面板滚动条向上按键码
      scrollDownKeyCode: 48, // 触发tv-vconsole面板滚动条向下按键码
      leftKeyCode: 37, // 触发tv-vconsole面板焦点向左按键码
      rightKeyCode: 39, // 触发tv-vconsole面板焦点向右按键码
      upKeyCode: 38, // 触发tv-vconsole面板焦点向上按键码
      downKeyCode: 40, // 触发tv-vconsole面板焦点向下按键码
      clearLogKeyCode: 55, // 触发tv-vconsole面板清除log日志按键码
    },
  }));

引入 ./tv-vconsole.js 到项目中:

<script src="path/to/tv-vconsole.js"></script>
<script>
  // 初始化
  var vConsole = new TVConsole({
    maxLogNumber: 50, // vConsole 属性
    tvConfig: { // tv-vconsole 扩展的属性
      defaultOpen: false, // 是否默认打开tv-vconsole面板
      triggerOpenKeyCodes: [49, 50, 51, 52, 53], //  触发tv-vconsole面板打开或者关闭触发按键码
      scrollUpKeyCode: 56, // 触发tv-vconsole面板滚动条向上按键码
      scrollDownKeyCode: 48, // 触发tv-vconsole面板滚动条向下按键码
      leftKeyCode: 37, // 触发tv-vconsole面板焦点向左按键码
      rightKeyCode: 39, // 触发tv-vconsole面板焦点向右按键码
      upKeyCode: 38, // 触发tv-vconsole面板焦点向上按键码
      downKeyCode: 40, // 触发tv-vconsole面板焦点向下按键码
      clearLogKeyCode: 55, // 触发tv-vconsole面板清除log日志按键码
    },
  });
  console.log('Hello tv-vconsole');
</script>

设计原理

tv-vconsole 设计原理,完全继承vConsole, 并在vConsole的基础上,扩展适配电视端只有遥控器没有鼠标的情况也可以使用vConsole。以不占有电视现有焦点的方式使用tv-vconsole,所以弃用focus方法,只用遥控按键监听,然后对应响应到tv-vconsole DOM元素的click事件来实现tv-vconsole面板的显示与切换,进而实现TV下vConsole的友好使用。

vConsole 文档

vConsole 本体:

vConsole 插件:

License

The MIT License