Crates.io | splik |
lib.rs | splik |
version | 0.2.6 |
source | src |
created_at | 2024-08-21 06:01:09.537787 |
updated_at | 2024-08-24 02:17:32.796691 |
description | Simple programming language identifier kit. |
homepage | |
repository | |
max_upload_size | |
id | 1346168 |
size | 32,161 |
Splik (Simple Language Identifier Kit) is a small CLI tool for identifying the languages used in a project. It has similar capabilities to onefetch, but it has more focused features and does not require the directory to be a git project.
Splik can:
.git
, node_modules
, Cargo.toml
, etc.)Splik is available on all platforms through Cargo:
cargo install splik
To run splik on the current directory, simply run splik
:
splik
The list of available options is as follows:
output [human-readable | json | yaml] (= human-readable)
include-dotfiles [bool] (= false)
.
). This is off by default to ignore things like .vscode
, .git
, etc.find [string | null] (= null)
find-root [boolean] (= false)
.git
, Cargo.toml
, node_modules
).exclude [string[]] (= [])
include [string[]] (= [])
node_modules
, target
, etc.) to include in the count and display.here [boolean] (= false)
splik
on the current directory.Splik recognizes the following languages/extensions:
Language | Extensions |
---|---|
Assembly | .asm |
Bash | .bash |
C | .c , .h |
C++ | .cpp , .cxx , .cc , .c++ , .hpp , .hxx , .hh , .h++ |
C# | .cs |
Fortran | .f , .for , .f90 , .f95 |
Gleam | .gleam |
Go | .go |
Haskell | .hs , .lhs |
Java | .java |
JavaScript | .js , .mjs , .cjs |
JavaScript React | .jsx |
Kotlin | .kt |
Lua | .lua |
MATLAB | .m |
PHP | .php |
Python | .py |
R | .r |
Ruby | .rb |
Rust | .rs |
SQL | .sql |
Svelte | .svelte |
Swift | .swift |
TypeScript | .ts |
TypeScript React | .tsx |
V | .v |
Vue | .vue |
Zig | .zig |
Splik is limited in a few ways:
main.c
to main.py
, and splik will think it's a Python file.