Answer the question
In order to leave comments, you need to log in
How to make a command line application in node.js?
Hello everyone, I wrote myself a small utility on the node, and such a question has ripened, it is possible to somehow pack the script into a binary or something similar so that you do not have to type "node util.js" through the command line, but it would be possible to run it double with a mouse click like a normal application.
Answer the question
In order to leave comments, you need to log in
stackoverflow.com/questions/24253027/node-and-sheb
... you need to add a special line to the beginning of the file indicating how to interpret it. Then rename it, set the execution rights chmod +x , throw it in a folder like /usr/loca/bin or some ~/bin and you can run it like a regular console utility.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question