edvinh / node-sloc

A small tool written in node for counting source lines of code.
10 stars 3 forks source link

Meta-info moved to file-extensions.js for separation of concerns. #2

Closed eHammarstrom closed 7 years ago

eHammarstrom commented 7 years ago

This implements 'RFC' #1 with some minor changes for ease of object access.

test follows through with same loc:

$ ./bin/node-sloc.js test 
Reading file(s)...

    +---------------------------------------------------+
    | SLOC                          | 313       |
    |-------------------------------|--------------------
    | Lines of comments             | 121       |
    |-------------------------------|--------------------
    | Blank lines                   | 48        |
    |-------------------------------|--------------------
    | Files counted                 | 12        |
    |-------------------------------|--------------------
    | Total LOC                     | 434       |
    +---------------------------------------------------+
eHammarstrom commented 7 years ago

What a major miss, been away from JS. Thanks for the heads up!

Made the suggested change on line 5 in index.js.

edvinh commented 7 years ago

Nice! Merged.