ffprobe-static-prune
v1.0.3
Published
A utility to prune unnecessary ffprobe-static binaries for your current platform and architecture to reduce package size.
Maintainers
Readme
ffprobe-static-prune
清理
ffprobe-static包中无用平台和架构的二进制文件,减少 Electron 应用体积。
安装
npm install -g ffprobe-static-pruneffprobe-static-prune
A lightweight CLI tool to remove unnecessary ffprobe-static platform binaries after npm install, so your app package is lighter and faster.
✨ Features
- Removes unused
ffprobebinaries for irrelevant platforms/architectures - Ideal for reducing Electron app bundle size
- Supports CLI arguments or defaults to current environment
📦 Installation
npm install --save-dev ffprobe-static-prune
or
npm install -g ffprobe-static-prune
🚀 Usage
Run in your project root after installing ffprobe-static:
npx ffprobe-static-pruneOr manually specify platform and architecture:
node index.js --platform=darwin --arch=arm64 --baseDir=.| Option | Description | Default |
| ------------ | --------------------------------------------------- | ------------------ |
| --platform | Platform to keep (darwin, win32, linux) | process.platform |
| --arch | Architecture to keep (x64, arm64, ia32, etc.) | process.arch |
| --baseDir | Base directory of your project | process.cwd() |
