vercel/pkg
This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
Repository Details
Repository Description
Package your Node.js project into an executable
Package your Node.js project into an executable
# `pkg` > [!IMPORTANT] > `pkg` has been deprecated with `5.8.1` as the last release. There are a number of successful forked versions of `pkg` already with various feature additions. Further, we’re excited about Node.js 21’s support for [single executable applications](https://nodejs.org/api/single-executable-applications.html). Thank you for the support and contributions over the years. The repository will remain open and archived. This command line interface enables you to package your Node.js project into an executable that can be run even on devices without Node.js installed. ## Use Cases - Make a commercial version of your application without sources - Make a demo/evaluation/trial version of your app without sources - Instantly make executables for other platforms (cross-compilation) - Make some kind of self-extracting archive or installer - No need to install Node.js and npm to run the packaged application - No need to download hundreds of files via `npm install` to deploy your application. Deploy it as a single file - Put your assets inside the executable to make it even more portable - Test your app against new Node.js version without installing it ## Usage ```sh npm install -g pkg ``` After installing it, run `pkg --help` without arguments to see list of options: ```console pkg [options] <input> Options: -h, --help output usage information -v, --version output pkg version -t, --targets comma-separated list of targets (see examples) -c, --config package.json or any json file with top-level config --options bake v8 options into executable to run with them on -o, --output output file name or template for several files --out-path path to save output one or more executables -d, --debug show more information during packaging process [off] -b, --build don't download p
Related Repositories
Product Discussion
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...