I'm using coffeescript for my current node.js project, starting the project with the following command (inside my project folder)
coffee app.coffee
Which starts the node application. I am, however, at a loss as to how node.js can interact with the coffeescript - is it compiled to a temporary folder?
nodeREPL and execute the source (text) you enter on the command line without producing a file.—just a tip: i've found that compiling and running my code with, saycoffee -o lib -c src && node lib/mymodule.jshas greatly improved the overall interoperativity of my code, as it does not depend anymore on (some particular version of) CoffeeScript to be present on another machine when installed there.coffeecommand will read the file contents, translate them into JavaScript, and then execute that code using (something similar to)eval. node itself never gets to see the CS source, much less is node itself obliged to know anything about CS semantics. this transparent 'compilation on the fly' has been added for convenience; as soon as projects get bigger, i think you're better off with making that step explicit. immediate bonus: runtime errors will point to JS source lines, and it's then handy to have the relevant files.