code-count
v1.5.1
Published
A CLI tool to count code lines and characters.
Downloads
14
Readme
code-count
A CLI tool to count code lines and characters.
install
yarn global add code-count
usage
code-count . -i .ts -e node_modules,.git
or code-count src/index.ts
options
key | description --- | --- -i,--include | file extension name, eg: ".ts,.html", repeatable -e,--exclude | directories, eg: "node_modules,.git", repeatable --debug | debug mode -h,--help | Print this message. -v,--version | Print the version
api
import { count } from 'code-count'
count('.', {
includedFileExtensionNames: [ '.ts' ],
excludedDirectories: [ 'node_modules', '.git' ]
})