node-cloc Count Lines of Code Library do Node.JS Site | Package The node-cloc library counts the number of lines of code for the given folder. This library is based on the fatastic cloc tool. Installation $ npm i node-cloc Usage const cloc = require('node-cloc') cloc('/my/folder').then((res) => console.log(res), (err) => console.log(err))