Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

filter out dotfiles like .bin

  • Loading branch information...
commit 5cc22d492823938b47b889293465a0bf56061d83 1 parent 1a6e0af
James Halliday authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 lib/npmlv.js
4 lib/npmlv.js
@@ -11,7 +11,9 @@ program
11 11
12 12 var res = {};
13 13 var base = process.cwd() + '/node_modules';
14   -var dirs = fs.readdirSync(base);
  14 +var dirs = fs.readdirSync(base)
  15 + .filter(function (dir) { return !/^\./.test(dir) });
  16 +
15 17 for(var i = 0; i < dirs.length; i++) {
16 18 var module = dirs[i];
17 19 var bdir = base + '/' + module;

0 comments on commit 5cc22d4

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