Thursday, December 29, 2016

Quick Tip - Count lines

Here's a command to get the count of js lines in a node project:

find . -name '*.js' ! -path '*node_module*' | xargs wc -l

The -path part is to exclude the node_modules folders so you don't count 3rd part libs.

No comments: