Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

filter out dotfiles like .bin

  • Loading branch information...
commit 5cc22d492823938b47b889293465a0bf56061d83 1 parent 1a6e0af
@substack authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/npmlv.js
View
4 lib/npmlv.js
@@ -11,7 +11,9 @@ program
var res = {};
var base = process.cwd() + '/node_modules';
-var dirs = fs.readdirSync(base);
+var dirs = fs.readdirSync(base)
+ .filter(function (dir) { return !/^\./.test(dir) });
+
for(var i = 0; i < dirs.length; i++) {
var module = dirs[i];
var bdir = base + '/' + module;

0 comments on commit 5cc22d4

Please sign in to comment.
Something went wrong with that request. Please try again.