# Title Case (titlecase)
`titlecase` is a small tool that capitlizes English text [according to a
style][style] defined by John Gruber for post titles on his website [Daring
Fireball]. `titlecase` runs on Linux, macOS, FreeBSD, NetBSD, and Windows. A
dependency free, single-file binary is built for each supported platform for
[every release][releases].
[](https://travis-ci.org/wezm/titlecase)
[](https://ci.appveyor.com/project/wezm/titlecase)
[](https://crates.io/crates/titlecase)
[][crate-docs]
`titlecase` is licensed under the [MIT license][MIT].
## Examples
```
```
## Command Line Usage
`titlecase` reads lines of text from **stdin** and prints title cased versions
to **stdout**.
## Usage as a Rust Crate
See the [crate documentation][crate-docs].
## Installation
[Pre-built `titlecase` binaries][releases] are available for Linux, macOS,
FreeBSD, NetBSD, and Windows.
### Rust Developer/Cargo
If you have a stable Rust compiler toolchain installed you can install
`titlecase` with cargo:
```
% cargo install titlecase
```
## Style
Instead of simply capitalizing each word `titlecase` does the following
([amongst other things][style]):
* Lower case small words like an, of, or in.
* Don't capitalize words like iPhone.
* Don't interfere with file paths, URLs, domains, and email addresses.
* Always capitalize the first and last words, even if they are small words
or surrounded by quotes.
* Don't interfere with terms like "Q&A", or "AT&T".
* Capitalize small words after a colon.
## Credits
This tool makes use of prior work by [John Gruber][style], [Aristotle
Pagaltzis], and [David Gouch]. The continuous integration configuration uses
[trust] by Jorge Aparicio, dual licensed under [the MIT][trust-mit] and
[Apache][trust-apache] licenses.
[Daring Fireball]: https://daringfireball.net/
[style]: https://daringfireball.net/2008/05/title_case
[Aristotle Pagaltzis]: http://plasmasturm.org/code/titlecase/
[David Gouch]: http://individed.com/code/to-title-case/
[releases]: https://github.com/wezm/titlecase/releases
[MIT]: https://github.com/wezm/titlecase/blob/master/LICENSE
[trust]: https://github.com/japaric/trust
[trust-mit]: https://github.com/japaric/trust/blob/master/LICENSE-MIT
[trust-apache]: https://github.com/japaric/trust/blob/master/LICENSE-APACHE
[crate-docs]: https://docs.rs/crate/titlecase