Count characters of code in code files.
Count excludes comments and whitespaces unless their inside string literals
Only // and /**/ type comments are ignored. String literals can be enclosed in ', " or `. Text inclosed in ${} in `` templates is treated as normal code
Globally
npm i -g scoc
To use in dev environments
npm i scoc --save-dev
scoc depends on https://github.com/isaacs/node-glob this lib is what parses the patterns you can pass.
scoc <glob>
scoc <glob> >> count.log