Disclaimer: pkg was created for use within containers and is not intended for use in serverless environments. For those using ZEIT Now, this means that there is no requirement to use pkg in your projects as the benefits it provides are not applicable to the platform.
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
There's even Zeit's pkg which I believe builds on the work of ncc. It generates a binary so you don't even need node installed.
Package your Node.js project into an executable
Disclaimer:
pkgwas created for use within containers and is not intended for use in serverless environments. For those using ZEIT Now, this means that there is no requirement to usepkgin your projects as the benefits it provides are not applicable to the platform.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
npm installto deploy your application. Deploy it as a single file