realpath

    realpath command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.4
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    88

    #realpath

    Canonicalize paths for MoonX.

    moonx cli/realpath@0.1.4 [OPTION]... NAME...

    #Supported scope

    Resolve paths physically or lexically, with existing/missing component modes and relative output. Default permits a missing final component.

    #Options

    OptionDescription
    -e, --canonicalize-existingrequire every component to exist
    -E, --canonicalizeallow a missing final component (default)
    -m, --canonicalize-missingallow missing or non-directory components
    -s, --strip, --no-symlinksdo not expand symbolic links
    --relative-to=DIRprint relative to DIR
    --relative-base=DIRuse relative output only inside DIR
    -q, --quietsuppress operand errors
    -z, --zeroterminate output with NUL
    --help / --versionShow help / package version.

    #Limitations

    • Physical resolution fails when a symbolic link cannot be expanded; -ms processes that spelling lexically.

    #Examples

    moonx cli/realpath@0.1.4 -e input.txt moonx cli/realpath@0.1.4 -ms path/../new.txt