RisingStack / oneshot-budapest

ONE-SHOT is a one day single track speaker series presented by NodeConf
11 stars 0 forks source link

Standalone executables #28

Closed imlucas closed 9 years ago

imlucas commented 10 years ago

Sometimes you can’t just npm install -g <solution>. If node.js and npm aren’t already installed, how can you get that same level of instant gratification? What do you do if you can't install either of those? What if you could add a module to an email as a single file attachment? Sometimes you just need that convenience of standalone executables: the runtime, the application and its dependencies in a single file. As it turns out, this has been supported by node natively since 2011 but lacks documentation and requires a bit of fiddling. This is a story about my recent adventures in node core, node-webkit, and black magic to figure this out.