Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlyonsmith/whitespace-rs
https://github.com/jlyonsmith/whitespace-rs
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jlyonsmith/whitespace-rs
- Owner: jlyonsmith
- License: unlicense
- Created: 2021-07-30T06:05:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-04T20:56:47.000Z (about 3 years ago)
- Last Synced: 2024-10-31T11:53:10.426Z (16 days ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Whitespace Tools (Rust Edition)
[![coverage](https://shields.io/endpoint?url=https://raw.githubusercontent.com/jlyonsmith/whitespace-rs/main/coverage.json)](https://github.com/jlyonsmith/whitespace-rs/blob/main/coverage.json)
[![Crates.io](https://img.shields.io/crates/v/whitespace-rs.svg)](https://crates.io/crates/whitespace-rs)
[![Docs.rs](https://docs.rs/whitespace-rs/badge.svg)](https://docs.rs/whitespace-rs)A Rust package and command line tools for fixing whitespace problems in text files.
- Reports on end-of-lines.
- Standardize end-of-lines to CR, LF or CRLF
- Report on beginnings-of-lines.
- Standarize beginnings-of-lines to spaces or tabs.
- Handles a mixture of different endings or beginnings
- Allows configuring the tab size on both input and output## Command Line
The command line tools `ender` and `spacer` are included in this crate using the `cli` feature flag (installed by default.)
- `ender` - reports and optionally normalizes or changes line endings in text files. See `ender --help` for details.
- `spacer` - reports on and optionally normalizes whitespace at the beginning of lines. See `spacer --help` for details.## License
Whitespace Tools is distributed under the terms of the [Unlicense](http://unlicense.org/) license. See the file [`UNLICENSE`](UNLICENSE) for details.