Package your Node.js project into an executable

What is pkg?

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.

pkg is a tool in the Javascript Utilities & Libraries category of a tech stack.

pkg is an open source tool with 13.3K Github Stars and 493 Github Forks. Here’s a link to pkg's open source repository on Github

pkg integrates with

Why people like pkg

Here’s a list of reasons why companies and developers use pkg.



Add a one-liner

pkg's Features

  • 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

pkg's alternatives

  • Underscore - JavaScript's utility _ belt
  • lodash - A modern JavaScript utility library delivering modularity, performance & extras.
  • Immutable.js - Immutable persistent data collections for Javascript which increase efficiency and simplicity, by Facebook
  • UglifyJS - JavaScript parser / mangler / compressor / beautifier library for NodeJS
  • Prepack - A tool for making JavaScript code run faster (by Facebook)

See all alternatives to pkg