UNPKG
@lonu/stc
Version:
latest (2.13.1)
2.13.1
2.13.0
2.12.0
2.11.0
2.10.1
2.10.0
2.9.0
2.8.2
2.8.1
2.8.0
A tool for converting OpenApi/Swagger/Apifox into code.
github.com/long-woo/stc
long-woo/stc
@lonu/stc
/
esm
/
deps
/
jsr.io
/
@std
/
path
/
1.1.0
/
_common
/
dirname.js
9 lines
(8 loc)
•
244 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Copyright 2018-2025 the Deno authors. MIT license.
// This module is browser compatible.
import
{ assertPath }
from
"./assert_path.js"
;
export
function
assertArg
(
path
) {
assertPath
(path);
if
(path.
length
===
0
)
return
"."
; }