unitypackage-extractor
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

UnityPackage Extractor

A command-line tool to extract .unitypackage files.

Installation

# Install globally to use as a command-line tool
npm install -g unitypackage-extractor

Usage

Command Line

unitypackage-extractor *.unitypackage [optional/output/path]

If no output path is specified, the package contents will be extracted to the current directory.

Features

  • Extracts .unitypackage files
  • Preserves the original directory structure
  • Handles path security (prevents directory traversal)
  • Works cross platform

Development

Build

npm run build

Run

# Using compiled js
node dist/cli.js *.unitypackage
# Or using ts-node CLI
ts-node src/cli.ts *.unitypackage

Credits

Inspired by Cobertos/unitypackage_extractor which relys on Python runtime and installed via pip.

I built this TypeScript version for lightweight and simplified CLI usage.

Package Sidebar

Install

npm i unitypackage-extractor

Weekly Downloads

112

Version

1.0.2

License

MIT

Unpacked Size

25.6 kB

Total Files

12

Last publish

Collaborators

  • maoyeedy