fold

    fold command for MoonX.

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

    #fold

    Wrap long input lines through MoonX.

    #Usage

    moonx cli/fold -w 40 input.txt moonx cli/fold -s -w 40 input.txt

    Wrap at 80 columns by default. -s prefers whitespace breaks; -b counts raw bytes.

    #Common options

    OptionDescription
    -b, --bytescount bytes rather than columns
    -c, --characterscount characters in the C-locale byte profile
    -s, --spacesbreak after the last available blank
    -w VALUE, --width VALUESet the output width. Default: 80.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Default column handling recognizes byte-level tabs and control characters, not Unicode display width.

    See the compatibility guide for the supported profile.

    Source Files