ffprobe-static-prune

1.0.3 • Public • Published

ffprobe-static-prune

清理 ffprobe-static 包中无用平台和架构的二进制文件,减少 Electron 应用体积。

安装

npm install -g ffprobe-static-prune

ffprobe-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 ffprobe binaries 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-prune

Or 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()

Package Sidebar

Install

npm i ffprobe-static-prune

Weekly Downloads

14

Version

1.0.3

License

MIT

Unpacked Size

6.07 kB

Total Files

5

Last publish

Collaborators

  • applestven