Permalink
Browse files

filter out dotfiles like .bin

  • Loading branch information...
1 parent 1a6e0af commit 5cc22d492823938b47b889293465a0bf56061d83 @substack committed Mar 28, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/npmlv.js
View
@@ -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.