UNPKG
cmder-cli
Version:
latest (0.1.1)
0.1.1
0.1.0
namespace shell commands cli
cmder-cli
/
lib
/
dir.js
19 lines
(14 loc)
•
337 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module
.
exports
=
function
(
) {
let
found =
false
;
return
__dirname.
split
(
'\\'
) .
filter
(
ressource
=>
{
if
( found ||
"node_modules"
=== ressource ) { found =
true
;
return
false
; }
return
true
; } ).
join
(
'\\'
) +
'\\'
; } ;