node-XMLHttpRequest
                                
                                
                                
                                    node-XMLHttpRequest copied to clipboard
                            
                            
                            
                        Support other languages
Hi, I used LiveScript and CoffeeScript with XMLHttpRequest and they could not work, because they are not exectued by node.
https://github.com/gkz/LiveScript/blob/master/bin/lsc https://github.com/jashkenas/coffeescript/blob/master/bin/coffee
You can see that they execute node via '/usr/bin/evn', so I do some change in your code for fix this problem.
Thanks & Regards. Rick.
Interesting problem. There must be a better solution to this though. Hardcoding a path (/usr/bin/env node) isn't scalable. What about when the node executable is named nodejs as it is when installed from Apt on Ubuntu?
The hardcoding path in lsc and coffee script is standard method to find executable file node via /usr/bin/env (http://www.gnu.org/software/coreutils/). If the node executable is named nodejs, lsc and coffee will not be executed in this case.