Notab

•

Normalize whitespace in files by converting tabs to spaces or leading spaces to tabs.

Notab is a versatile tool designed to streamline whitespace normalization in your code and configuration files. It operates as both an MCP server and a command-line utility, allowing developers to effortlessly convert tabs into a specified number of spaces, or inversely, transform leading spaces back into tabs. This ensures consistent formatting across projects, making codebases cleaner and more readable, especially for environments with strict style guides or specific file requirements like Makefiles.

主な機能

01Bidirectional whitespace conversion (tabs to spaces, spaces to tabs)
02Operates as both a CLI tool and an MCP server
03Customizable spacing for tab-to-space conversion
04Preserves file permissions during writes
050 GitHub stars
06Provides detailed JSON output of normalization results

ユースケース

01Enforce consistent code style and formatting standards
02Convert leading spaces to tabs for specific file types like Makefiles
03Automate whitespace normalization within development workflows