Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 451 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 451 Bytes

readdir-scoped-modules

Warning: This repo has been archived in favor of the readdirScoped method on @npmcli/fs

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']
})