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 🙏

© 2025 – Pkg Stats / Ryan Hefner

simple-novnc

v0.0.5

Published

simpleEdu vnc inatall package plugin

Downloads

34

Readme

#安装

npm install 安装使用,适用于vue,react前后端分离项目

- npm install simple-novnc
 import SimpleVNC from 'simple-novnc/src/index'
 import 'simple-novnc/build/vnc.css'

传统js链接方式调用

下载中台服务提供的vnc插件包,直接在页面中引入相对资源路径
```
    <script src="./js/simplevnc.min.js"></script>
    <link rel="stylesheet" href="./css/simplevnc.css">
```

使用方式

eg:在服务包的/dist/index.html,是一个基本的使用demo,你可以参考它
- Hmtl文件引入dom
```
     <div class="vnc"  id="noVNC_main">
        <!--  top_bar info dom-->
        <div id="top_bar">
            <div id="status">Loading</div>
            <div id="sendCtrlAltDelButton" class="sendCtrlAltDelButton" onclick="sendCtrlAltDel">Send CtrlAltDel</div>
        </div>
        <!-- main node dom ,you must code -->
        <div id="noVNC_canvas" class="vnc-canvas"> </div>
        <!-- clipBoard ,You can decide if you need it -->
        <div class="noVNC_vcenter">
            <div id="noVNC_clipboard" class="noVNC_panel">
                    <textarea id="noVNC_clipboard_text" rows=5></textarea>
                    <input id="noVNC_clipboard_clear_button" type="button" value="清除" class="noVNC_submit_clear">
                </div>
            <button  id="noVNC_clipboard_button" class="noVNC_button" >剪贴板</button> 
        </div>
    </div>
```
- js调用方式
 let novnc = new SimpleVNC({
          nodeId: 'noVNC_canvas',
          width: '800px',
          height: '600px',
          config: {
              host: '192.168.200.15',
              port: '8888',
              password: 'ssssss',
              path: 'websockify/?vm_uuid=532922ca-92ca-4556-b963-22f4de627469',
          }
      });
      novnc.initVNC()

#API -SimpleVNC 提供的vnc对象 ,使用 new SimpleVNC() 即可实例化整个VNC对象,提供一个option参数传入 option 参数,实例化对象后传入可配置的参数选项 -nodeId : string类型,传入VNC_canvas 中dom的ID,必传项 - width : string类型,宽度,支持px,vw,vh,em等单位,与css一致 - height: string类型,高度,支持px,vw,vh,em等单位,与css一致 - addLoadiing :bool类型,是否在初始loading时加载 loadding动画,默认true - autoConnect :bool类型,是否加载dom,实例化后自动连接,默认自动连接为true,你也可以选择false后,执行手动连接事件 - config :Object类型,必传,连接VNC所需的配置参数,包括 host 地址,port 端口,password 密码,path (webscoket 连接信息) eg:config:{ host: '192.168.200.15', port: '8888', password: '', path: 'websockify/?vm_uuid=532922ca-92ca-4556-b963-22f4de627469', } -Event 事件