pkg
Package your Node.js project into executable binaries for Windows, macOS, and Linux.
Why consider pkg?
pkg is an open-source CLI tool written in TypeScript by Vercel. It packages Node.js applications and their node_modules into single self-contained standalone executable binaries across Windows, macOS, and Linux without requiring target machines to have Node.js installed.
Learn pkg by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of pkg
pkg bundles Node.js scripts into single executable files for zero-dependency distribution.
Quickstart
npm install -g pkgpkg app.js --targets node18-linux-x64,node18-win-x64pkg is licensed under the permissive MIT License.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.