deno.land / std@0.224.0 / path / _common / dirname.ts

dirname.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import { assertPath } from "./assert_path.ts";
export function assertArg(path: string) { assertPath(path); if (path.length === 0) return ".";}
std

Version Info

Tagged at
4 months ago