@shopify/cli-kit
    Preparing search index...

    Function basename

    • Returns the base name of a path.

      Parameters

      • path: string

        Path to get the base name of.

      • Optionalext: string

        Optional extension to remove from the result.

      Returns string

      Base name.