UNPKG

kloc-cli

Version:

A simple CLI tool to count lines of code in current working directory

10 lines (7 loc) 257 B
import { execSync } from 'child_process' import path from 'path' export const getPath = (item) => { let prefix prefix = execSync('npm config get prefix', { encoding: 'utf8' }).trim() return path.resolve(prefix, 'node_modules', 'kloc', item) }