basename

    basename command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.4
    License
    Apache-2.0
    Last updated
    15 days ago
    Downloads
    186

    #basename

    Development candidate: cli/basename@0.2.4. Publication is separate; latest.json records the uploaded coordinates.

    Extract path names for MoonX.

    moonx cli/basename@0.2.4 [-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.

    #Argument and exit-status contract

    Ordinary option/operand errors exit 1; documented capability refusals retain their own status.

    #Limitations

    • Suffix removal is literal, not pattern matching.

    #Examples

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

    Source Files