scoc

2.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i scoc

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

15.4 kB

Total Files

10

Last publish

Collaborators

  • mikeneto