This may be old news, but I recently discovered cloc.
To count the number of code, comment and blank lines run cloc
while in the project root. Include --exclude-dir=node_modules_or_whatever to
exclude any directories.
There are many more options to eye-ball.
Have fun :)