flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
943 stars 84 forks source link

Using sloc in a NodeJS module: is it possible to search for all file extensions? #121

Open benatspo opened 3 years ago

benatspo commented 3 years ago

I'd like to do something like: var stats = sloc("nsure", "*"); for(i in sloc.keys){ var k = sloc.keys[i]; console.log(k + " : " + stats[k]); } in a NodeJS application.

Using the CLI, it is possible to do it, simply using the following command (without specifying any file extension):

sloc nsure

Thank you for your help 👍