A command-line tool to extract .unitypackage files.
# Install globally to use as a command-line tool
npm install -g unitypackage-extractorunitypackage-extractor *.unitypackage [optional/output/path]If output path unspecified, packages will be extracted to current directory
./Assets
unitypackage-extractor view *.unitypackageList the contents of the package without extracting it.
- Extracts .unitypackage files
- Preserves the original directory structure
- Handles path security (prevents directory traversal)
- Works cross platform
npm run build# Using compiled js
node dist/cli.js *.unitypackage# Or using ts-node CLI
ts-node src/cli.ts *.unitypackageInspired by Cobertos/unitypackage_extractor which relys on Python and installed via pip.
I built this TypeScript version for lightweight and simplified CLI usage.