Categories
JavaScript Answers

How to make exe files from a Node.js app with JavaScript?

Spread the love

Sometimes, we want to make exe files from a Node.js app with JavaScript.

In this article, we’ll look at how to make exe files from a Node.js app with JavaScript.

How to make exe files from a Node.js app with JavaScript?

To make exe files from a Node.js app with JavaScript, we can use JXcore program.

We install it with

curl http://jxcore.com/xil.sh | bash

on Linux or download the binary install it on Windows.

Then we create an exe from our Node.js project by running

jx package app.js "myAppName" -native

app.js is the entry point file in our Node.js project.

'myAppName' is the app name and should be replace with our app’s name.

-native builds a native executable for the platform it’s currently on.

Conclusion

To make exe files from a Node.js app with JavaScript, we can use JXcore program.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *