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

lightshortcuts

v1.1.5

Published

Light离线包自动发布工具

Downloads

669

Readme

Light快捷指令

仅适用于Light管控台的快捷指令,用于快速处理离线包的一些处理,如发布等。请向相关平台管理员获取API地址和token、AppID。

使用说明

  1. 安装

    使用npm或yarn进行全局安装,Linux系统需要管理员权限:

    npm install -g lightshortcuts

    升级包:

    npm update -g lightshortcuts
  2. 登录管控台系统

    发布前需要先登录系统,需要输入API地址和token:

    Usage: lsc login [options]
       
    登录会话
       
    Options:
      -e, --env <type>  选择管控台的环境,e为dev、prod
       
    示例1:
    lsc login -e dev #切换到测试环境
    示例2:
    lsc login --env prod #切换到生产环境
  3. 切换不同会话环境,name:dev、prod

    lsc use <name> 
  4. 初始化发布配置

    方式一:交互模式进行创建(推荐方式):

    lsc config

    之后将在当前路径下创建发布配置文件lsc.config.json,请打开文件,根据需要做相应修改:

    {
      "pkgid": "XXXXX", //离线包唯一ID
      "set_pkg_version": "1.0.1", //指定发布版本
      "publish_app_arr": [3577, 3592], //AppID列表发布到指定App,默认开发版
      "apps_name": {
        "3592": "开发版_iOS",
        "3577": "开发版_安卓"
      },
      "android_version_scope": "7.0.7.0", //Android端离线包兼容版本
      "ios_version_scope": "7.0.7", //iOS端离线包兼容版本
      "pkg_zip_name": "dist.zip",//离线包压缩包文件名
      "pkg_dir": "./dist/", //离线包相对所在路径
      "release_desc": "若干功能更新", //发布日志
      "task_status": "0" //发布当前版本后,对上一版本的处理:0:发布(不处理),1:暂停,2:结束(下架)
    }

    方式二:使用模板一键初始化:

    lsc init

    之后再根据项目进行修改。

  5. 离线包发布

    • 单项目发布:

      lsc publish		#或简写为 lsc p
    • 批量发布。配置项(除pkgid,pkg_zip_name外)与单项目发布一样,批量发布将以离线包名称作为ID,以ID.zip作为压缩包文件名,请务必确保ID的准确性:

      lsc batch		#或简写为 lsc b

在配置好发布文件的前提下,可以缩写成以下命令:

lsc login && lsc publish
  1. 会话注销

    Usage: lsc logout [options]
       
    注销会话
       
    Options:
      -e, --env <type>     选择管控台的环境
      -l, --link <link>    注销指定管控台链接
      -t, --token <token>  注销指定token
  2. 帮助

    ➜  ~ lsc --help
    Usage: lsc [options] [command]
       
    Options:
      -V, --version     output the version number
      -h, --help        display help for command
       
    Commands:
      login [options]   登录会话
      logout [options]  注销会话
      use <name>        设置当前发布版本
      config            交互式配置离线包发布参数
      init              快速初始化配置模板
      publish|p         发布离线包
      batch|b           发布离线包
      deal <version>    处理离线包兼容版本相互重叠的情况,谨慎使用!
      clean <all>       批量处理离线包兼容版本相互重叠的情况,谨慎使用!
  3. 清理指定离线包兼容版本范围:lsc deal version

  4. 批量清理指定离线包兼容版本范围(需管理员权限):lsc clean all

  5. 生成加密过的账户密码:lsc md5

    //方式1、交互式方式填写邮箱或手机号、密码以生成加密后的密码
    lsc md5
        
    //方式2、通过命令参数生产

附:

1、在Windows系统运行命令时,如果提示“此系统上禁止运行脚本”,则按如下方法解决:

方法:
1、以管理员身份运行 Windows PowerShell(管理员)
2、输入 set-ExecutionPolicy RemoteSigned ,然后输入A 回车
3、还可以通过 get-ExecutionPolicy 查看当前的状态