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

assert_path.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// Copyright the Browserify authors. MIT License.
export function assertPath(path?: string) { if (typeof path !== "string") { throw new TypeError( `Path must be a string. Received ${JSON.stringify(path)}`, ); }}
std

Version Info

Tagged at
4 months ago