0.0.3-0 • Published 6 years ago
rots v0.0.3-0
rots
rots
is a command line tool, that is used to quickly calculate the number of lines of various language codes in a project
Features
- Quickly calculate data
- Support multiple languages
- Beautiful user interface
Install
yarn global add rots
Use
Go to your project in the terminal and type rots on the command line
cd your-project
rots
# If you want to ignore files
rots --ignore node_modules dist
# If you want to use regular expressions
rots --ignore 'node_\w+|dist'
# If you want to count a language separately
rots --ext .ts .js
# If you want to output a table with three primary colors
rots --color
Contributing
rots can only count some languages now. If you want to add statistics for other languages, please refer to ./src/config.ts
Example:
const config = {
'.js': [
'JavaScript', /^\s*\/\//, [/\/\*/, /\*\//]
]
// ...
}
Supported Languages
License
MIT LICENSE