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
/
bin
/
tools
/
isInside.ts
8 lines
(5 loc)
•
231 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{ relative
as
pathRelative }
from
"path"
;
export
function
isInside
(
params
: { dirPath:
string
; filePath:
string
}
) {
const
{ dirPath, filePath } = params;
return
!
pathRelative
(dirPath, filePath).
startsWith
(
".."
); }