basename

    basename command for MoonX.

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

    #basename

    Extract path names for MoonX.

    moonx cli/basename@0.2.3 [-a] [-s SUFFIX] [-z] NAME [SUFFIX]

    #Supported scope

    Remove directory components and optionally a suffix. Paths are processed without accessing the filesystem.

    #Options

    OptionDescription
    -a, --multipleProcess each operand separately.
    -s, --suffix=SUFFIXRemove a matching suffix; implies multiple operands.
    -z, --zeroEnd each result with NUL.
    --help / --versionShow help / package version.

    #Limitations

    • Suffix removal is literal, not pattern matching.

    #Examples

    moonx cli/basename@0.2.3 /tmp/report.txt moonx cli/basename@0.2.3 -s .txt report.txt notes.txt

    Source Files