ube
ube copied to clipboard
A command line tool used to count lines of code (CLOC)
Ube
Ube (ooh-bay) is a program that displays statistics about your code. Ube will show the number of files, and total lines within those files grouped by language.
Example

Table of Contents
- Features
- Installation
- macOS
- Linux
- Windows
- Usage
- Common Issues
- Contributing
- License
Features
- Ube has a huge range of languages, supporting over 220 language extensions.
- It's accurate, and consistent as it counts the number of newline characters
/npresent in a specified path. This ensures consistency across different platforms and text editors. - The code statistics are displayed in a clean, easy-to-read format leveraging the following libraries:
- Bubble Tea - A powerful little TUI framework
- Bubbles - TUI components for Bubble Tea
- Lip Gloss - Style definitions for Bubble Tea
- Log - A minimal, colorful Go logging library
Installation
macOS
-
Download the appropriate release archive for your platform from the Latest Release page:
- For Intel-based Macs: ube_2.0.0_darwin_amd64.tar.gz
- For Apple Silicon Macs: ube_2.0.0_darwin_arm64.tar.gz
-
Extract the archive from your downloads folder using the following command in your terminal:
$ tar -xzf ~/Downloads/ube_2.0.0_darwin_amd64.tar.gz # or ube_2.0.0_darwin_arm64.tar.gz -
Move the extracted binary to a directory in your PATH for convenient access from any directory:
$ mv ube /usr/local/bin/ube -
Verify the installation (might have to allow in settings):
$ ube
Linux
- Download the appropriate release archive for your platform from the Latest Release page:
- For 32-bit systems: ube_2.0.0_linux_386.tar.gz
- For 64-bit systems: ube_2.0.0_linux_amd64.tar.gz
- For ARM 64-bit systems: ube_2.0.0_linux_arm64.tar.gz
- Extract the archive from your downloads folder using the following command in your terminal:
$ tar -xzf ~/Downloads/ube_2.0.0_linux_386.tar.gz # or ube_2.0.0_linux_amd64.tar.gz or ube_2.0.0_linux_arm64.tar.gz - Move the extracted binary to a directory in your PATH for convenient access from any directory:
$ sudo mv ube /usr/local/bin/ube - Set the correct permissions for the binary:
$ sudo chmod +x /usr/local/bin/ube - Verify the installation:
$ ube
Windows
- Download the appropriate release archive for your platform from the Latest Release page:
- For 32-bit systems: ube_2.0.0_windows_386.tar.gz
- For 64-bit systems: ube_2.0.0_windows_amd64.tar.gz
- For ARM 64-bit systems: ube_2.0.0_windows_arm64.tar.gz
- Extract the archive from your downloads folder using a tool like 7-Zip or WinRAR.
- Move the extracted binary (ube.exe) to a directory included in your system's PATH environment variable for convenient access. Alternatively, you can run the tool from its extracted location.
- Verify the installation:
$ ube
Usage
$ ube ./your/path
Common Issues
“ube” can’t be opened because Apple cannot check it for malicious software.
- Naviagte to
Settings>Security & Privacy. - Under
Generaltab, click "Allow Anyway" next to the message about the app being blocked.
Contributing
Contributions are welcome! Please check the Contributing Guidelines for a few helpful tips!
License
This project is licensed under the MIT License.