Like `fs.readdir` but handling `@org/module` dirs as if they were a single entry.
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test code and tests Aug 12, 2014
.travis.yml tap@1.2.0 and travis-ci Jun 1, 2015
LICENSE license Aug 12, 2014
README.md docs Aug 12, 2014
package.json 1.0.2 Sep 10, 2015
readdir.js Use graceful-fs instead of fs to avoid EMFILE error Nov 19, 2014

README.md

readdir-scoped-modules

Like fs.readdir but handling @org/module dirs as if they were a single entry.

Used by npm.

USAGE

var readdir = require('readdir-scoped-modules')

readdir('node_modules', function (er, entries) {
  // entries will be something like
  // ['a', '@org/foo', '@org/bar']
})