Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/path/posix.ts>basename

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable basename
Deprecated
Deprecated

(will be removed after 0.210.0) Import from https://deno.land/std/path/posix/mod.ts instead.

import { basename } from "https://deno.land/std@0.208.0/path/posix.ts";