A simple tool to combine several node modules into a single script.
This is a simple tool that takes several node modules and combines them into a single file.
This is done by implementing a mini require/define system.
The best way to explain this is to show a sample usage. Suppose that I have a node script (with dependencies) that I want to run in some node sandbox. I can embed my script and all it's dependencies into a single script and then run that.
var embedder = ;var runInNewContext = runInNewContext;;
Note that I included my main script as a dependency and then bootstrapped it with a manual require line. This isn't strictly required, but I find it cleaner.