slocjs
v1.1.4
Published
Simple tool to count SLOC (source lines of code)
Downloads
25
Maintainers
Readme
slocjs
SLOC: 83
Quickstart:
npm install slocjs
ESM
import and use like:
import { countLinesInDir } from "slocjs";
const lines = countLinesInDir("./src");
console.log(lines);
// SLOC: 3415
or
Common
const slocjs = require("slocjs");
const lines = slocjs.countLinesInDir("./src");
console.log(lines);
Tests
Run tests in watch mode:
npm run test:watch
Npmjs
https://www.npmjs.com/package/slocjs