UNPKG
liftoff
Version:
latest (5.0.1)
5.0.1
5.0.0
4.0.0
3.1.0
3.0.0
2.5.0
2.4.0
2.3.0
2.2.5
2.2.4
2.2.3
2.2.1
2.2.0
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.0
0.13.6
0.13.5
0.13.3
0.13.2
0.13.1
0.13.0
0.12.1
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
Launch your command line tool with ease.
github.com/gulpjs/liftoff
gulpjs/liftoff
liftoff
/
lib
/
file_search.js
15 lines
(13 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var findup =
require
(
'findup-sync'
);
module
.exports =
function
(search, paths)
{ var
path
; var
len
= paths.length;
for
(var i =
0
; i <
len
; i++) {
if
(
path
) {
break
; }
else
{
path
= findup(search, { cwd: paths[i], nocase:
true
}); } }
return
path
; };