Sign in

    cygpath

    A MoonBit implementation of Cygwin-style path conversion (in development).

    cygpath
    cygwin
    windows
    path
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    25 days ago
    Downloads
    13

    #cygpath for moonx

    A pure MoonBit library and command-line tool for converting between Windows and Cygwin/MSYS2-style POSIX paths.

    moonx ZSeanYves/cygpath -u 'C:\work\demo.txt' moonx ZSeanYves/cygpath -w --root 'C:\cygwin64' /usr/bin moonx ZSeanYves/cygpath -h

    Supports POSIX (-u), Windows (-w), and mixed (-m) output; absolute conversion (-a); path lists (-p); /proc/cygdrive output (-U); and root-local paths (-r). Drive, UNC, relative, and ordinary extended paths are supported, with lexical normalization, long-path handling, and Cygwin filename character mapping. Cygwin and MSYS2 profiles accept explicit roots, mounts, drive prefixes, and working directories.

    Input can come from arguments, UTF-8 files (-f FILE), or stdin (-f -), with per-record options (-o) and skipping empty operands (-i). Windows/mixed output supports UTF-8 and 110 legacy numeric code pages (-C). The CLI runs on Wasm and Native. Import ZSeanYves/cygpath/lib to use the conversion library.

    Unsupported: automatic installation-root or working-directory discovery; DOS/8.3 and filesystem long-name lookup; symlink/junction resolution; Windows system-folder queries; mount-mode queries and handle closing; device and virtual-filesystem paths; non-ASCII mount case folding; automatic ANSI/OEM selection; GB18030, stateful encodings, and CP29001. Malformed UTF-8 is rejected.

    Apache-2.0, with Unicode, Microsoft, and newlib notices.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io