Open a22d44g66 opened 2 years ago
https://www.google.com/search?q=compile+node+application+into+single+file https://www.google.com/search?q=compile+node+to+single+file https://www.google.com/search?q=node+project+to+executable https://www.npmtrends.com/nexe-vs-pkg-vs-enclose
https://www.section.io/engineering-education/compile-your-nodejs-application-into-a-exe-file/
https://github.com/vercel/ncc "Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires."
https://www.npmjs.com/package/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."
https://www.npmjs.com/package/nexe "Nexe is a command-line utility that compiles your Node.js application into a single executable file."
https://www.npmjs.com/package/pkg#targets
Targets pkg can generate executables for several target machines at a time. You can specify a comma-separated list of targets via --targets option. A canonical target consists of 3 elements, separated by dashes, for example node12-macos-x64 or node14-linux-arm64:
- nodeRange (node8), node10, node12, node14, node16 or latest
- platform alpine, linux, linuxstatic, win, macos, (freebsd)
- arch x64, arm64, (armv6, armv7)
(element) [a thing in parentheses] is unsupported, but you may try to compile yourself.
Targeted platforms: