Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plantain-00/code-count
A CLI tool to count code lines and characters.
https://github.com/plantain-00/code-count
Last synced: 4 months ago
JSON representation
A CLI tool to count code lines and characters.
- Host: GitHub
- URL: https://github.com/plantain-00/code-count
- Owner: plantain-00
- License: mit
- Created: 2017-03-24T11:25:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T23:21:22.000Z (about 2 years ago)
- Last Synced: 2024-10-04T22:25:32.520Z (5 months ago)
- Language: TypeScript
- Size: 1.04 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# code-count
[](https://david-dm.org/plantain-00/code-count)
[](https://david-dm.org/plantain-00/code-count#info=devDependencies)
[](https://ci.appveyor.com/project/plantain-00/code-count/branch/master)

[](https://badge.fury.io/js/code-count)
[](https://www.npmjs.com/package/code-count)
[](https://github.com/plantain-00/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
```ts
import { count } from 'code-count'count('.', {
includedFileExtensionNames: [ '.ts' ],
excludedDirectories: [ 'node_modules', '.git' ]
})
```