A command-line tool to extract .unitypackage files.
# Install globally to use as a command-line tool
npm install -g unitypackage-extractor
unitypackage-extractor *.unitypackage [optional/output/path]
If no output path is specified, the package contents will be extracted to the current directory.
- 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 *.unitypackage
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.