1 个不稳定版本
0.1.0 | 2023年2月4日 |
---|
1642 在 文本处理
4KB
unindenter
Unindenter 是一个用 Rust 编写的命令行工具,可以从 stdin 读取的文本中去除前导空白。此工具的目的是通过去除前导空白并使文本更易于阅读,从而简化处理缩进文本的工作。
安装
您可以使用 cargo 安装 unindenter
cargo install --locked unindenter
用法
您可以通过将文本管道输入 unindenter
来使用它
echo " Indented text" | unindenter
这将输出
Indented text
您还可以将 unindenter
作为更大管道的一部分使用
cat indented-file.txt | unindenter | some-other-command
贡献
欢迎贡献!如果您想为 unindenter
项目做出贡献,请打开一个问题或拉取请求。
许可证
本项目受 MIT 许可证 许可。