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

@open-dy/tt-wasmsplit-ci

v1.0.2

Published

抖音小游戏分包工具

Readme

tt-wasmsplit-ci

介绍

抖音小游戏分包工具,开发者可通过该命令行工具进行抖音小游戏的分包操作,包括:开启分包、获取分包状态、开始分包、终止分包。

默认情况下会采集部分行为数据以帮助我们了解如何更好地改进产品,您也可以通过在命令中加入 '--no-report' 来禁止该行为。

使用

安装

npm install -g @open-dy/tt-wasmsplit-ci

使用 TMG 登录

本工具使用 tmg (抖音开发者工具命令行版本) 登录信息进行认证,您需要先登录 tmg

参考文档:https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/dev-tools/development-assistance/ide-cli

tmg 下载地址:https://www.npmjs.com/package/tt-minigame-ide-cli?activeTab=readme

开启分包

tt-wasmsplit-ci init -p <package> -i <appId> -m <version description>

输入需要开启分包的小游戏包,若该包未开启分包,则开启分包并输出用于收集函数的 prepare 包。

Usage: tt-wasmsplit-ci init [options]

开启分包并获取用于收集函数的 prepare 包

Options:
  -p, --package <path>                 原始包路径,必填
  -i, --appid <appid>                  app id,必填
  -r, --refer <ref_version>            增量分包参考版本,选填,为空时表示不使用增量分包
  -s, --symbol <symbol>                wasm符号表文件,选填,为空时自动在原始包所在目录的wasm_symbols子目录或原始包内寻找
  -m, --message <version description>  分包版本描述,必填
  --no-report                          使用该参数时将不采集行为数据
  -h, --help                           display help for command

获取分包状态

tt-wasmsplit-ci getinfo -p <package> -i <appId>

输入需要查询分包状态的小游戏包,则获取当前分包信息、例如收集函数数量等,以及历史分包版本信息,并保存在指定文件中或原始包所在目录下的 gameinfo.txt

Usage: tt-wasmsplit-ci getinfo [options]

获取当前分包信息、例如收集函数数量等,以及历史分包版本信息

Options:
  -p, --package <path>  原始包路径,必填
  -i, --appid <appid>   app id,必填
  -o, --output <path>   项目收集信息,选填,为空时默认保存在原始包所在目录下的 gameinfo.txt
  --no-report           使用该参数时将不采集行为数据
  -h, --help            display help for command

开始分包

tt-wasmsplit-ci dosplit -p <package> -i <appId>

输入需要开始分包的小游戏包,请求分包服务器进行分包操作,并输出分包后的小游戏包

Usage: tt-wasmsplit-ci dosplit [options]

请求 wasm 分包并下载分包后小游戏包

Options:
  -p, --package <path>  原始包路径,必填
  -i, --appid <appid>   app id,必填
  -g, --debug           包含此参数下载 debug 包,反之下载 release 包 (default: false)
  --no-report           使用该参数时将不采集行为数据
  -h, --help            display help for command

终止分包

tt-wasmsplit-ci stop -p <package> -i <appId>

输入需要终止分包的小游戏包,若该包开启了分包,则终止分包。

Usage: tt-wasmsplit-ci disable [options]

终止分包

Options:
  -p, --package <path>  原始包路径,必填
  -i, --appid <appid>   app id,必填
  --no-report           使用该参数时将不采集行为数据
  -h, --help            display help for command