V
V
Vyacheslav Lebedev2015-05-17 18:28:42
Node.js
Vyacheslav Lebedev, 2015-05-17 18:28:42

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

1 answer(s)
T
Timur Shemsedinov, 2015-05-17
@slavikse

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 nodeit 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 question

Ask a Question

731 491 924 answers to any question