Skip to main content
Module

x/helmet/mod.ts>basename

Type-safe Helm - the right way to do Infrastructure as Code in Kubernetes
Go to Latest
function basename
Re-export
import { basename } from "https://deno.land/x/helmet@1.24.1/mod.ts";

Return the last portion of a path. Trailing directory separators are ignored, and optional suffix is removed.

Parameters

path: string
  • path to extract the name from.
optional
suffix = [UNSUPPORTED]
  • suffix to remove from extracted name.

Returns

string