realpath

    realpath command for MoonX.

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

    #realpath

    Resolve and normalize paths through MoonX.

    #Usage

    moonx cli/realpath existing.txt moonx cli/realpath -m missing/path moonx cli/realpath --relative-to=. existing.txt

    Resolve path components and symbolic links. Select existing-only, missing-component or lexical normalization behavior explicitly.

    #Common options

    OptionDescription
    -e, --canonicalize-existingrequire every component to exist
    -m, --canonicalize-missingallow missing or non-directory components
    -s, --stripdo not expand symbolic links
    -z, --zeroterminate output with NUL
    --relative-to VALUEprint relative to DIR
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Physical resolution requires readable link targets. Lexical mode does not establish physical containment.

    See the compatibility guide for the supported profile.

    Source Files