Re:Show HN: Coinmon – Check Bitcoin Prices in Terminal
by WildGreenLeave on Monday November 20, 2017 @12:05PM
(#15741363)
Thats because PKG is including the Node runtime in the binaries, this way users don't have to install Node itself to run them.
I'm using it myself and besides the fat binaries and the fact that you have to write Javascript, it is really good. (Working on replacing this daemon with Go ASAP)
Edit: just read your last line, I'm kinda stating the obvious here.
https://www.npmjs.com/package/pkg
edit: For the curious -- Just tried on a really simple script that just takes one argument and writes it with some text to STDOUT and it still came to 35MB. So it must package a bunch of Node with it. I won't be leaving my go-to's for it anytime soon unless usability and development speed necessitate it. Going to have to go with the, best to not use NodeJS for general cmd-line utils outside of the NodeJS environment. The one perk is that it will, by default, output executables for Linux, macOS, and Windows.
Source:
Output file: