UNPKG
keycloakify-test
Version:
latest (5.8.4-test)
5.8.4-test
5.8.3-test
5.8.2-test
5.8.1-test
5.8.0-test
5.6.9-test
5.6.8-test
5.6.7-test
5.6.6-test
5.6.5-test
5.6.4-test
5.6.3-test
Keycloak theme generator for Reacts app
github.com/garronej/keycloakify
garronej/keycloakify
keycloakify-test
/
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
(
"/"
); }