Answer the question
In order to leave comments, you need to log in
How to run a command in node on coffee, "#!/usr/bin/env node"?
Good evening!
On pure js, such a command works as it should: #!/usr/bin/env node
But on coffee, this is converted into a comment.
How to be?
Answer the question
In order to leave comments, you need to log in
This is not a JS team and not a Coffe team, this is a command. It needs to be added to the file after Coffe to JS is translated, or instead node
it needs to be run via coffee
. See here https://www.npmjs.com/package/coffee-script
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question