{"id":16266970,"url":"https://github.com/wezm/titlecase","last_synced_at":"2025-04-06T01:06:52.623Z","repository":{"id":21994725,"uuid":"94591704","full_name":"wezm/titlecase","owner":"wezm","description":"A tool and Rust crate for transforming text into Title Case.","archived":false,"fork":false,"pushed_at":"2024-05-23T09:29:28.000Z","size":113,"stargazers_count":86,"open_issues_count":5,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-23T10:33:37.379Z","etag":null,"topics":["rust","titlecase","wasm"],"latest_commit_sha":null,"homepage":"https://7bit.org/titlecase/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wezm.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-17T00:54:43.000Z","updated_at":"2024-05-23T10:33:41.112Z","dependencies_parsed_at":"2022-09-15T23:40:41.861Z","dependency_job_id":"0695554d-cbd8-4cef-9f68-ecd20d3b85b9","html_url":"https://github.com/wezm/titlecase","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.03125,"last_synced_commit":"b6674fe4f4b7e7f4be1ba964ebf6da595af66157"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wezm%2Ftitlecase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wezm%2Ftitlecase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wezm%2Ftitlecase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wezm%2Ftitlecase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wezm","download_url":"https://codeload.github.com/wezm/titlecase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419859,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","titlecase","wasm"],"created_at":"2024-10-10T17:43:32.491Z","updated_at":"2025-04-06T01:06:52.598Z","avatar_url":"https://github.com/wezm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Title Case (titlecase)\n\n`titlecase` is a small tool and library (crate) that capitalizes English text\n[according to a style][style] defined by John Gruber for post titles on his\nwebsite [Daring Fireball]. `titlecase` should run on all platforms supported\nby Rust including Linux, macOS, FreeBSD, NetBSD, OpenBSD, and Windows.\n\n[![Build Status](https://api.cirrus-ci.com/github/wezm/titlecase.svg)](https://cirrus-ci.com/github/wezm/titlecase)\n[![crates.io](https://img.shields.io/crates/v/titlecase.svg)](https://crates.io/crates/titlecase)\n[![Documentation](https://docs.rs/titlecase/badge.svg)][crate-docs]\n[![License](https://img.shields.io/crates/l/titlecase.svg)][MIT]\n\n## Try Online\n\n\u003chttps://7bit.org/titlecase/\u003e\n\n## Command Line Usage\n\n`titlecase` reads lines of text from **stdin** and prints title cased versions\nto **stdout**.\n\n### Examples\n\n```\n% echo 'Being productive on linux' | titlecase\nBeing Productive on Linux\n\n% echo 'Finding an alternative to Mac OS X — part 2' | titlecase\nFinding an Alternative to Mac OS X — Part 2\n\n% echo 'an example with small words and sub-phrases: \"the example\"' | titlecase\nAn Example With Small Words and Sub-Phrases: \"The Example\"\n```\n\n## Install\n\n### Pre-compiled binaries\n\nPre-compiled binaries are available for some platforms, check the\n[latest release](https://github.com/wezm/titlecase/releases/latest).\n\n### From Source\n\nIf you have a stable [Rust compiler toolchain][rustup] installed you can\ninstall the most recently released `titlecase` with cargo:\n\n    cargo install titlecase\n\n## Usage as a Rust Crate\n\n**Minimum Supported Rust Version:** 1.70.0\n\nSee the [crate documentation][crate-docs].\n\n## Building for WebAssembly\n\n### Pre-requisites\n\n- Rust 1.73.0+\n- Rust `wasm32-unknown-unknown` target\n  (`rustup target add wasm32-unknown-unknown` or `rust-wasm` package on Chimera Linux)\n- [wasm-bindgen]\n  (`wasm-bindgen` package on Arch, or `cargo install wasm-bindgen-cli --version 0.2.92`)\n- `make` (GNU or BSD should work)\n\n### Building\n\nThere is a `Makefile` that automates building for WebAssembly.\n\n    make\n\nThe output is put into a `wasm` directory. See\n\u003chttps://github.com/wezm/7bit.org/tree/main/public/titlecase\u003e for an\nexample that uses the wasm build.\n\n## Style\n\nInstead of simply capitalizing each word `titlecase` does the following\n([amongst other things][style]):\n\n* Lower case small words like an, of, or in.\n* Don't capitalize words like iPhone.\n* Don't interfere with file paths, URLs, domains, and email addresses.\n* Always capitalize the first and last words, even if they are small words\n  or surrounded by quotes.\n* Don't interfere with terms like \"Q\u0026A\", or \"AT\u0026T\".\n* Capitalize small words after a colon.\n\n## Credits\n\nThis tool makes use of prior work by [John Gruber][style], [Aristotle\nPagaltzis], and [David Gouch].\n\n[Aristotle Pagaltzis]: http://plasmasturm.org/code/titlecase/\n[crate-docs]: https://docs.rs/titlecase\n[Daring Fireball]: https://daringfireball.net/\n[David Gouch]: http://individed.com/code/to-title-case/\n[MIT]: https://github.com/wezm/titlecase/blob/master/LICENSE\n[rustup]: https://www.rust-lang.org/tools/install\n[style]: https://daringfireball.net/2008/05/title_case\n[wasm-bindgen]: https://github.com/rustwasm/wasm-bindgen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwezm%2Ftitlecase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwezm%2Ftitlecase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwezm%2Ftitlecase/lists"}