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

x/fathym_atomic_icons/src/src.deps.ts>path.basename

Fathym's Atomic Icons is a library that supports the optimized creation of customzied icon sets for delivery via Deno Fresh.
Go to Latest
function path.basename
import { path } from "https://deno.land/x/fathym_atomic_icons@v0.0.32/src/src.deps.ts";
const { basename } = path;

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