flosse / sloc

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

Batch processing support for node.js #107

Open dilipkumar2k6 opened 5 years ago

dilipkumar2k6 commented 5 years ago

I am using sloc with my node.js code. Currently my code takes one file content at a time.

const {total, source} = sloc(content, extension);

How can I support batch processing to make it faster? I have requirement to process 1000+ files at a time. Batching will help. I am looking for something as below.

const [{total, source}] = sloc([content], [extension]);