I use the following command before sending JS files to my server:
node --check <filename>.js
That way I can be sure there are no gross errors before forwarding the file to the server (i.e. a missing )
generates an error).
What I noticed, though, is that node.js
does not give me an error if I do not put a semicolon at the end of a line. I would like that to happen, but after looking at the command line options, I just cannot see such a feature.
Is there a way to do that with node.js
?