fmt

    fmt command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.4
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    74

    #fmt

    Reformat text paragraphs for MoonX.

    moonx cli/fmt@0.1.4 [-WIDTH] [-w WIDTH] [-g GOAL] [-suct] [-p PREFIX] [FILE...]

    #Supported scope

    Read files or stdin, preserve indentation and separate paragraphs at blank lines. The default width is 75.

    #Options

    OptionDescription
    -w, --width=WIDTH / -WIDTHSet maximum width (0 through 2500).
    -g, --goal=GOALSet preferred width.
    -s, --split-onlySplit long lines without joining input lines.
    -u, --uniform-spacingUse one inter-word space and two after sentences.
    -c, --crown-marginAllow a different first-line indent.
    -t, --tagged-paragraphPreserve hanging indentation.
    -p, --prefix=PREFIXReformat matching prefixed lines only.
    --help / --versionShow help / package version.

    #Limitations

    • Uses C-byte columns, not Unicode display widths. A long word can exceed the selected width.
    • Does not rewrite input files.

    #Examples

    moonx cli/fmt@0.1.4 -w 60 notes.txt moonx cli/fmt@0.1.4 -s -w 40 notes.txt

    Word

    type Word

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io