Single command binary compilation for NodeJS

Install pkg

npm install -g pkg

Create a package.json with the pkg definition in it

{
  "name": "myApp",
  "bin":  "myApp.js"
}

Use pkg to create the binary

pkg .
categories: aws | devops | static-website |