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 .
npm install -g pkg
{
"name": "myApp",
"bin": "myApp.js"
}
pkg .