0.0.3-0 • Published 6 years ago

rots v0.0.3-0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

rots

Build Status codecov Download Version License

rots is a command line tool, that is used to quickly calculate the number of lines of various language codes in a project

preview

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

0.0.3-0

6 years ago

0.0.2-0

6 years ago

0.0.1-0

6 years ago