Various command line applications use an Interpreter Directive to define how they should be run.
#! js -m foo
#! node foo
exports.reversePath = function(path) | |
{ | |
var reversedPath = []; | |
for(var i = 0; i < path.length; i++) | |
{ | |
var currentStep = path[i]; | |
var dx = currentStep.dx * -1; | |
var dy = currentStep.dy * -1; |
Various command line applications use an Interpreter Directive to define how they should be run.
#! js -m foo
#! node foo