Skip to content

Instantly share code, notes, and snippets.

@JH108
Created January 16, 2020 13:14
Show Gist options
  • Save JH108/810af65c0aa94a9d2464ff1cf4b34f7d to your computer and use it in GitHub Desktop.
Save JH108/810af65c0aa94a9d2464ff1cf4b34f7d to your computer and use it in GitHub Desktop.
Using Cloc to count lines of javascript in a project
cloc . --exclude-dir node_modules,android,ios,lib | grep Script | sed 's/\n/\n/g' | sed 's/.*\ //g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment