#language #percentage #calculate #directory #language-stat

bin+lib languatage

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

10 releases (breaking)

0.8.1 Oct 5, 2022
0.7.0 Sep 10, 2022

#9 in #percentage

MIT license

11KB
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

~2–4MB
~72K SLoC