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

nox-mod-admin-cli

v1.0.1

Published

CLI tool with pretty output and progress

Readme

nox-mod-admin-cli

CLI tạo các file zip từ resources và (tùy chọn) upload lên S3.

  • Node.js >= 18
  • Hỗ trợ: macOS, Linux, Windows

Cài đặt

npm install -g nox-mod-admin-cli

Hoặc chạy trực tiếp bằng npx (không cần cài):

npx nox-mod-admin-cli <resources_path> <package_name>

Lệnh

Build từ resources zip

nox-mod-admin <resources_path> <package_name> [aws-profile-name] [--production]

| Tham số | Bắt buộc | Mô tả | |--------|----------|--------| | resources_path | Có | Đường dẫn file .zip resources (vd: com.garena.game.kgvn.zip) | | package_name | Có | Loại server: vn, tw, id, th, eu, jp | | aws-profile-name | Không | Tên AWS profile để upload lên S3 sau khi tạo xong file | | --production | Không | Upload lên servers_prod; mặc định là servers_lib |

Ví dụ:

nox-mod-admin com.garena.game.kgvn.zip vn
nox-mod-admin ./resources.zip tw nms2
nox-mod-admin com.garena.game.kgvn.zip vn nms2 --production

Sinh constant từ folder (base paths)

nox-mod-admin --gen-base <path_to_folder>

Đọc toàn bộ file và thư mục trong folder, ghi ra src/base-paths.js (BASE_PATHS + BASE_DIRS). Dùng khi cập nhật danh sách file cho base.zip.

Ví dụ:

nox-mod-admin --gen-base base
nox-mod-admin --gen-base ./my-structure

File được tạo

Mỗi lần chạy dùng thư mục tạm (OS temp), tạo xong hoặc upload xong sẽ xóa. Các file zip tạo ra:

| File | Nội dung | |------|----------| | base.zip | File theo BASE_PATHS/BASE_DIRS từ files/Resources/{version}/ | | ages_{server}.zip | files/Resources/{version}/Ages/ | | assetbundle_{server}.zip | files/Resources/{version}/assetbundle/ | | prefab_characters_all.zip | files/Resources/{version}/Prefab_Characters/ | | databin_{server}.zip | files/Resources/{version}/Databin/ | | languages_{server}.zip | files/Resources/{version}/Languages/ | | fix_permission.zip | Ages, assetbundle, AssetRefs, Databin, Languages, Prefab_Characters, Thanos |

  • {server} = giá trị package_name (vn, tw, id, …).
  • {version} = thư mục version trong resources (vd: 1.61.1).
  • Zip dùng nén store (không nén).

Upload S3

Khi truyền aws-profile-name:

  • Bucket: nox-mod-skin-storage
  • Prefix: servers_lib/{package_folder}/files hoặc servers_prod/{package_folder}/files nếu có --production
  • Package folder (theo package_name):
    vn → com.garena.game.kgvn, tw → com.garena.game.kgtw, id → com.garena.game.kgid, th → com.garena.game.kgth, eu → com.ngame.allstar.eu, jp → com.tencent.ngjp

Upload gồm: file resources (input) + toàn bộ file zip vừa tạo.

Yêu cầu: Cài AWS CLI, cấu hình profile tương ứng. CLI dùng endpoint S3 mặc định (cấu hình trong code).

Development

git clone <repo>
cd nox-mod-admin-cli
npm install
node bin/cli.js com.garena.game.kgvn.zip vn

License

MIT