2.1.0 • Published 6 years ago
scoc v2.1.0
scoc
Count characters of code in code files.
Count
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
Install
Globally
npm i -g scoc
To use in dev environments
npm i scoc --save-dev
Usage
GLOB
scoc depends on https://github.com/isaacs/node-glob this lib is what parses the patterns you can pass.
CLI
scoc <glob>
In dev when refactoring
scoc <glob> >> count.log