s $opts->{all};
}
} else {
my $p;
for my $e (".js", ".json", ".node") {
$p = "$d/$name$e";
if (-f $p) {
last unless $opts->{all};
} elsif (-f "$p/package.json") {
push @res, "$p/package.json";
last unless $opts->{all};
}
dule is found, or string containing the found path.
Known options:
=over
=item * parse_package_json => bool (default: 0)
Not yet implemented.
=item * cwd => str
Use this directory instead of usi