This is a small command line tool to get the normalized source lines of Code (nSLOC), written in Rust.
Currently it supports the following languages:
- Go
- Rust
- Solidity
- Javascript
It is based on tokei, which does most of the heavy lifting.
To use nslocer with Rust files you need to have rustfmt installed and in your PATH.
To install from source using cargo.
cargo install https://github.com/Shogoki/nslocerAfter installation you can simply call nslocer.
Example:
nslocerFull Help
nslocer --help
A simple tool to calculate normalized lines of code, utilitizing tokei in the background
Usage: nslocer [OPTIONS]
Options:
-p, --path <PATH> [default: .]
-e, --excluded-path <EXCLUDED_PATH> Exclude path from being analyzed
-h, --help Print help
-V, --version Print version