| Crates.io | cjkfmt |
| lib.rs | cjkfmt |
| version | 0.0.6 |
| created_at | 2025-06-15 04:32:37.508409+00 |
| updated_at | 2025-07-08 15:35:24.17343+00 |
| description | Formatter for CJK text files |
| homepage | |
| repository | https://github.com/sgryjp/cjkfmt |
| max_upload_size | |
| id | 1712898 |
| size | 89,451 |
cargo install cjkfmtcjkfmt can be configured in several ways, with configuration options applied in the following order of precedence (highest to lowest):
CJKFMT_.cjkfmt.json found in the current or ancestor directories.cjkfmt.json in the user's configuration directory
(XDG_CONFIG_HOME if set, otherwise $HOME)The configuration file is searched for in the current directory and, if not found, in each parent directory up to the root. Only the first file found will be used.
Currently, the following configuration options are available:
| Option | Description | Default |
|---|---|---|
max_width |
Maximum line width to allow | 80 |
Depending on the configuration source, the option names are formatted slightly differently:
max_widthCJKFMT_.
Example: CJKFMT_MAX_WIDTH--max-width 100Below is an example configuration file .cjkfmt.json.
{
"max_width": 100
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.