fmt

    fmt command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.7
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    148

    #fmt

    Reflow text paragraphs through MoonX.

    #Usage

    moonx cli/fmt -w 60 input.txt moonx cli/fmt -s -w 60 input.txt

    Read files or stdin and reflow paragraphs using the selected maximum width and goal width.

    #Common options

    OptionDescription
    -w VALUE, --width VALUESet maximum width (0 through 2500). Default: 75.
    -g VALUE, --goal VALUESet preferred width.
    -s, --split-onlySplit long lines without joining input lines.
    -u, --uniform-spacingUse one inter-word space and two after sentences.
    -p VALUE, --prefix VALUEReformat matching prefixed lines only. Default: "".
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Spacing, prefixes and indentation use C-locale byte rules; this is not Unicode-aware typesetting.

    See the compatibility guide for the supported profile.

    Source Files