UNPKG
@pushrocks/smartpath
Version:
latest (5.0.5)
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.3
4.0.1
4.0.0
offers smart ways to handle paths
github.com/pushrocks/smartpath
pushrocks/smartpath
@pushrocks/smartpath
/
ts
/
smartpath.check.ts
10 lines
(7 loc)
•
259 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
*
as
plugins
from
'./smartpath.plugins.js'
;
export
let
isDir =
function
(
pathArg: string
) {
return
!
isFile
(pathArg); };
export
let
isFile =
function
(
pathArg
) {
return
/\.[a-zA-Z]*$/
.
test
(pathArg);
// checks if there is a .anything at the end
};