Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/cli/deps.ts>pathPosix.basename

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function pathPosix.basename
import { pathPosix } from "https://deno.land/x/hex@0.5.15/src/cli/deps.ts";
const { basename } = pathPosix;

Return the last portion of a path. Trailing directory separators are ignored.

Parameters

path: string

to process

optional
ext = [UNSUPPORTED]

of path directory

Returns

string