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 🙏

© 2024 – Pkg Stats / Ryan Hefner

remote-command

v0.1.1

Published

### 问题背景 跟据用户提交的反馈及截图,已快速锁定问题原因(可能为脏数据缓存、某资源缓存异常导致),后续常规操作为进行远程协助,或引导用户进行相关的专业操作解决问题。于是我们将面临“用户操作成本高”,“远程操作信任问题”,“工作强度大无空闲机会远程”,“网络波动干扰导致协助效率低下”等问题

Downloads

3

Readme

远程指令

问题背景

跟据用户提交的反馈及截图,已快速锁定问题原因(可能为脏数据缓存、某资源缓存异常导致),后续常规操作为进行远程协助,或引导用户进行相关的专业操作解决问题。于是我们将面临“用户操作成本高”,“远程操作信任问题”,“工作强度大无空闲机会远程”,“网络波动干扰导致协助效率低下”等问题

远程指令优势

  1. 指令快速下发到异常端,精确排障
  2. 规避协助的网络波动因素,提高效率,降低用户与开发者额外精力耗费
  3. 支持默认与扩展,官方实现资源及基础缓存清理,且开放自定义指令通道支持能力扩展

如何使用

  1. 进入开发者控制台,随后进入到插件详情页
  2. 选择远程指令,填写用户nick(支持子账号,且账号需在线)
  3. 选择指令,官方指令/扩展指令,参数根据需要填写
  4. 执行远程指令,成功会有提示,若提示“缺失路由信息”,请确认远程nick正确性

关于扩展指令

// SDK环境下,监听remoteCmd.notify事件
QN.event.regEvent({
  eventId: 'remoteCmd.notify',
  notify: function (data, eventId) {
    try {
      var res = JSON.parse(data);

      // res.cmdkey 为你的指令代码
      // res.cmdparam 携带的参数
      
      // 定制的业务逻辑
      
    } catch (ex) {
      console.log(ex);
    }
  }
});

使用示例

  1. 执行发送端,选择清楚ls缓存,并携带test参数,用于执行清除key为test的值
  2. 远程客户端接收到指令,进行ls清楚工作,执行成功

常见异常问题

  1. 基础指令在qnsdk中实现,如果你的应用是内置的sdk实现,则无法使用基础指令,线上版本为:http://g.alicdn.com/sj/qn/jssdk-ex-debug.js

远程指令原理