node-XMLHttpRequest icon indicating copy to clipboard operation
node-XMLHttpRequest copied to clipboard

Support other languages

Open rick68 opened this issue 11 years ago • 2 comments

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.

rick68 avatar Jul 20 '14 02:07 rick68

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?

driverdan avatar Jul 21 '14 15:07 driverdan

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.

rick68 avatar Jul 21 '14 20:07 rick68