Re:Cash: a cross-platform implementation of Unix shell comma...
by tholmes on Wednesday February 24, 2016 @10:41AM
(#11167520)
This works:
#!/usr/bin/node
console.log("hello");
mark it executable and enjoy.Unless that's not really what you were getting at with your comment. If I misunderstood, sorry!
For Javascript we have the engine as V8 VM already, is it possible we can use javascript the way as python/bash(i.e. #!/bin/js) someday? that means ignoring the DOM/web related portion and make javascript a true client/server side script language, then it's really close to 'one language rules all'.