pkgとnexeの違い
nodeをインストールしてないパソコンでjsを動かしたい
プログラム書いて相手に渡したいときとかに使える
nexe:
Bundles the application if desired using webpack.
Downloads node source (or a prebuilt binary)
Adds your application bundle as a native module (like fs, http, path etc)
Applies arbitrary source patches.
Maybe compiles downloaded source
Inserts bundle into pre-sized binary
Code is run as main when executable is run (instead of the repl)
Bundles the application with a custom v8 script compiler into a snapshot
Downloads the node source (or a prebuilt binary)
Applies arbitrary source patches
Maybe compiles downloaded source
Appends snapshotted output to the end of the binary
Snapshot (cachedData from v8) is loaded/run when binary executes.
nodeのbinary 35Mくらいだった
puppeteer-coreをpkgしたら39MだったのでGUIが手軽に作れていいと思う