I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
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.
zeit / pkg
Package your Node.js project into an executable
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 usepkg
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
npm install
to deploy your application. Deploy it as a single file