UNPKG
@edflex-tech/keycloakify
Version:
latest (5.9.1-rc.4)
5.9.1-rc.4
5.9.1-rc.3
Keycloak theme generator for Reacts app
github.com/garronej/keycloakify
edflex-tech/keycloakify
@edflex-tech/keycloakify
/
src
/
lib
/
tools
/
pathJoin.ts
7 lines
(6 loc)
•
248 B
text/typescript
View Raw
1
2
3
4
5
6
7
export
function
pathJoin
(
...
path
:
string
[]
):
string
{
return
path .
map
(
(
part, i
) =>
(i ===
0
? part : part.
replace
(
/^\/+/
,
""
))) .
map
(
(
part, i
) =>
(i === path.
length
-
1
? part : part.
replace
(
/\/+$/
,
""
))) .
join
(
"/"
); }