#cargo #language #tools #directory #calculate #development #percentage

bin+lib languatage

A tool for calculate the percentage of languages used in a directory

10 releases (breaking)

Uses new Rust 2021

0.8.1 Oct 5, 2022
0.7.0 Sep 10, 2022

#811 in Development tools

42 downloads per month

MIT license

10KB
220 lines

Languatage

Test Clippy languatage at crates.io languatage at docs.rs

A tool for calculate the percentage of languages used in a directory

Development

Build binary

# with cargo-make
cargo make
# or
cargo build --bin languatage --features build-binary

lib.rs:

Languatage

This is a tool for calculate the percentage of languages used in a directory.

Usage

use languatage::{get_stat, LanguageStat};

let stat: std::io::Result<Vec<LanguageStat>> = get_stat(".");

Dependencies

~1.7–3MB
~65K SLoC