What's a good tool for calculating a web KSLOC?

For HTML, CSS and JavaScript files, what's a good tool to run in source directories and get KSLOC?

0


a source to share


2 answers


wc -l

- good start.



+2


a source


grep -v -P "^\s*$" -R dir/ | wc -l 

      



Gives you a line count that ignores blank lines.

+2


a source







All Articles