projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Style changes for the Use cases.
[yaffs-website]
/
node_modules
/
liftoff
/
lib
/
file_search.js
1
const findup = require('findup-sync');
2
3
module.exports = function (search, paths) {
4
var path;
5
var len = paths.length;
6
for (var i = 0; i < len; i++) {
7
if (path) {
8
break;
9
} else {
10
path = findup(search, {cwd: paths[i], nocase: true});
11
}
12
}
13
return path;
14
};